.register-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.register-form {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.error-message {
    color: #e74c3c;
    background: #fdeaea;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.register-btn {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.register-btn:hover {
    background: #2980b9;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    color: #3498db;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.back-to-home {
    text-align: center;
    margin-top: 20px;
}

.back-to-home a {
    color: #7f8c8d;
    text-decoration: none;
}

.back-to-home a:hover {
    color: #2c3e50;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
}

.login-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.login-btn {
    background: #3498db;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2980b9;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link a {
    color: #3498db;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #2ecc71;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.back-to-home {
    text-align: center;
    margin-top: 20px;
}

.back-to-home a {
    color: #7f8c8d;
    text-decoration: none;
}

.back-to-home a:hover {
    color: #2c3e50;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    height: 100vh;
    overflow: hidden;
}

.nav-container {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #3498db;
}

.auth-wrapper {
    height: 100vh;
    padding-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.auth-container {
    width: 90%;
    max-width: 1000px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    overflow: hidden;
    position: relative;
}

.form-container {
    width: 60%;
    padding: 2rem 4rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

.form-container::-webkit-scrollbar {
    width: 6px;
}

.form-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.form-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.auth-container.register-mode .side-content {
    transform: translateX(-150%);
}

.auth-container.register-mode .form-container {
    transform: translateX(66.666%);
}

.form-title {
    font-size: 2em;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    opacity: 0;
    animation: fadeInDown 0.6s forwards;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    box-sizing: border-box;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background: #fff;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.register-form {
    max-width: 100%;
    box-sizing: border-box;
}

.register-form .form-row {
    margin-bottom: 1rem;
}

.error-message,
.success-message {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.error-message {
    background: #fff3f3;
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.success-message {
    background: #f0fff4;
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 0.6s 0.5s forwards;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.side-content {
    width: 40%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
    position: absolute;
    right: 0;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.switch-form-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s 0.4s forwards;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .auth-container {
        width: 95%;
        height: auto;
        min-height: 600px;
        margin: 1rem auto;
        flex-direction: column-reverse;
    }

    .side-content {
        position: static;
        width: 100%;
        padding: 2rem;
        min-height: 200px;
    }

    .form-container {
        width: 100%;
        padding: 2rem;
        height: auto;
        max-height: calc(100vh - 280px);
        overflow-y: auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .login-form {
        padding: 0;
    }

    .auth-container.register-mode .side-content,
    .auth-container.register-mode .form-container {
        transform: none;
    }

    .auth-wrapper {
        padding: 80px 1rem 20px;
        height: auto;
        min-height: 100vh;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .submit-btn {
        margin-top: 0.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}