/* ===== Login & Register Page Styles ===== */

/* === Login Page === */
.login-container {
    display: flex;
    flex: 1;
    min-height: 600px;
}

.login-hero {
    flex: 1;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M30,50 Q50,30 70,50 T90,50" stroke="%23FFD700" fill="none" stroke-width="2"/><path d="M20,60 Q40,40 60,60 T80,60" stroke="%23FFD700" fill="none" stroke-width="2"/><path d="M10,40 Q30,20 50,40 T70,40" stroke="%23FFD700" fill="none" stroke-width="2"/></svg>');
    background-size: 200px;
    opacity: 0.1;
}

.handshake-icon {
    width: 200px;
    height: 200px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,60 L40,40 L30,30 L50,10 L70,30 L60,40 L80,60" stroke="%23FFD700" fill="none" stroke-width="4"/><path d="M30,70 L50,50 L40,40 L60,20 L80,40 L70,50 L90,70" stroke="%23FFD700" fill="none" stroke-width="4"/><circle cx="25" cy="75" r="5" fill="%23FFD700"/><circle cx="35" cy="65" r="5" fill="%23FFD700"/><circle cx="65" cy="75" r="5" fill="%23FFD700"/><circle cx="75" cy="65" r="5" fill="%23FFD700"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 30px;
    position: relative;
}

.hero-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    max-width: 500px;
    position: relative;
}

.login-form-container {
    flex: 1;
    background-color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.form-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

/* Auth Form Elements */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: auto;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.login-btn:hover {
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
}

.register-link {
    text-align: center;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--white);
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--light-gray);
}

.social-btn i {
    font-size: 20px;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    display: block;
    margin-top: 4px;
    margin-left: 2px;
}

.server-error {
    color: #e74c3c;
    background-color: #fdf2f2;
    border: 1px solid #f8d7da;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    text-align: center;
    font-size: 14px;
    display: none;
}

input.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.login-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.login-btn.loading::after {
    content: " Logging in...";
}

/* === Register Page === */
.register-container {
    display: flex;
    justify-content: center;
    padding: 50px 0;
}

.register-form {
    width: 100%;
    max-width: 500px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.register-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.register-subtitle {
    font-size: 16px;
    color: var(--medium-gray);
    margin-bottom: 30px;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required-field::after {
    content: '*';
    color: var(--error-color);
    margin-left: 4px;
}

.register-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.register-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-input-group select {
    width: 100px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
}

.phone-input-group input {
    flex: 1;
}

.register-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.register-form .checkbox-group input {
    margin-top: 3px;
}

.register-form .checkbox-group label {
    font-size: 14px;
    color: var(--medium-gray);
}

.register-form .checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.register-form .checkbox-group a:hover {
    text-decoration: underline;
}

.register-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.register-btn:hover {
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--medium-gray);
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-hero {
        padding: 40px 20px;
    }

    .handshake-icon {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 24px;
    }

    .login-form-container {
        padding: 30px 20px;
    }

    .register-form {
        padding: 25px;
    }
}
