/* Main Container */
.signin-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.signin-wrapper {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Left Side - Welcome Message */
.signin-welcome {
    background: var(--primary-gradient);
    padding: 3rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.signin-welcome::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" opacity="0.1"/></svg>');
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(-60px, -60px); }
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
}

.welcome-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.welcome-features {
    list-style: none;
}

.welcome-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.platform-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.platform-badge {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Right Side - Signin Form */
.signin-form-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Social Signin */
.social-signin {
    margin-bottom: 2rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--transition-speed) ease;
}

.social-btn:hover {
    border-color: var(--primary-color);
    background: rgba(252, 20, 54, 0.05);
}

.social-btn span {
    font-size: 1.3rem;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 20, 54, 0.1);
}

.form-group input.error {
    border-color: var(--error-color);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-lighter);
    transition: color var(--transition-speed) ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input[type="checkbox"] {
    width: auto;
}

.remember-me label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition-speed) ease;
}

.forgot-password:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Signup Link */
.signup-link {
    text-align: center;
    color: var(--text-light);
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Quick Access */
.quick-access {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.quick-access h4 {
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.quick-link {
    padding: 0.7rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-link:hover {
    border-color: var(--primary-color);
    background: rgba(252, 20, 54, 0.05);
    color: var(--primary-color);
}

.quick-link-icon {
    font-size: 1.1rem;
}

/* Footer */
.signin-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.signin-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.signin-footer a:hover {
    text-decoration: underline;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive - Sign In */
@media (max-width: 968px) {
    .signin-wrapper {
        grid-template-columns: 1fr;
    }

    .signin-welcome {
        display: none;
    }

    .signin-form-section {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .form-header h1 {
        font-size: 1.8rem;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ============================================ */
/* SIGN UP SECTION */
/* ============================================ */

/* Main Container */
.signup-container {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.signup-wrapper {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Left Side - Signup Form */
.signup-form-section {
    padding: 3rem;
}

/* Form header already defined - reusing from signin */

/* Account Type Selection */
.account-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.account-type {
    padding: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    position: relative;
}

.account-type:hover {
    border-color: var(--primary-color);
    background: rgba(252, 20, 54, 0.05);
}

.account-type.selected {
    border-color: var(--primary-color);
    background: rgba(252, 20, 54, 0.1);
}

.account-type.selected::after {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-gradient);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.account-type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.account-type h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.account-type p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Social Signup - reusing social-buttons from signin */
.social-signup {
    margin-bottom: 2rem;
}

/* Social buttons already defined with .social-btn */
/* Updated styling for signup variant */
.social-signup .social-btn {
    padding: 0.9rem;
}

.social-signup .social-btn span {
    font-size: 1.2rem;
}

/* Divider already defined - reusing from signin */

/* Form Fields - Extended from signin */
.signup-form-section .form-group {
    margin-bottom: 1.3rem;
}

.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-speed) ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 20, 54, 0.1);
}

.form-group input.success {
    border-color: var(--success-color);
}

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

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.show {
    display: block;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all var(--transition-speed) ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--error-color);
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--success-color);
}

.password-hint {
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-top: 0.3rem;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: start;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.checkbox-group label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Submit Button already defined - reusing from signin */

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Right Side - Benefits */
.signup-benefits {
    background: var(--primary-gradient);
    padding: 3rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.benefits-header {
    margin-bottom: 3rem;
}

.benefits-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.benefits-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.benefits-list {
    list-style: none;
}

.benefit-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInRight 0.6s ease;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    opacity: 0.9;
    line-height: 1.7;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stats */
.signup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.success-modal.show {
    display: flex;
}

.success-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    text-align: center;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.success-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.success-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.success-btn {
    padding: 1rem 2.5rem;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer - Signup */
.signup-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.signup-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.signup-footer a:hover {
    text-decoration: underline;
}

/* Responsive - Sign Up */
@media (max-width: 968px) {
    .signup-wrapper {
        grid-template-columns: 1fr;
    }

    .signup-benefits {
        display: none;
    }

    .signup-form-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .account-types,
    .social-buttons {
        grid-template-columns: 1fr;
    }

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

    .signup-stats {
        grid-template-columns: 1fr;
    }
}