/* Login/Signup Page Styles */
.auth-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

.auth-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.auth-header h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.auth-header p {
    opacity: 0.9;
    font-size: var(--text-lg);
    margin: 0;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.auth-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .auth-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--light-bg);
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.card-header h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.card-header p {
    color: var(--text-muted);
    font-size: var(--text-base);
    margin: 0;
}

.card-body {
    padding: 30px;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--text-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label .required {
    color: var(--danger);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: var(--text-base);
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control.error {
    border-color: var(--danger);
}

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

.form-help {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-help.error {
    color: var(--danger);
}

.form-help.success {
    color: var(--success);
}

.input-group {
    display: flex;
    position: relative;
}

.input-group .form-control {
    flex: 1;
}

.input-group-text {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: transparent;
    border: none;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.input-group-text:hover {
    color: var(--primary);
}

.phone-prefix {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
}

.phone-prefix + .form-control {
    padding-left: 70px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.remember-me label {
    color: var(--text);
    font-size: var(--text-sm);
    cursor: pointer;
}

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

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

.btn-auth {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-google {
    background: var(--bg-white);
    color: var(--text);
    border: 2px solid var(--border-color);
}

.btn-google:hover {
    background: var(--light-bg);
    border-color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text);
    font-size: var(--text-base);
    margin-bottom: 15px;
}

.btn-link {
    color: var(--primary);
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline;
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.features-list {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 25px;
    border-left: 4px solid var(--success);
}

.features-list h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--success);
    font-size: var(--text-lg);
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text);
    font-size: var(--text-sm);
}

.features-list li i {
    color: var(--success);
    font-size: var(--text-sm);
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(var(--success-rgb), 0.1);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), 0.3);
}

.alert-danger {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger);
    border: 1px solid rgba(var(--danger-rgb), 0.3);
}

.alert-warning {
    background: rgba(var(--warning-rgb), 0.1);
    color: var(--warning);
    border: 1px solid rgba(var(--warning-rgb), 0.3);
}

.breadcrumb {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: var(--text-sm);
}

.breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.breadcrumb .active {
    color: var(--text-white);
    opacity: 0.7;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 5px;
    background: var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 5px;
    position: relative;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    border-radius: var(--radius);
    transition: var(--transition);
}

.strength-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strength-text span {
    font-weight: 600;
    transition: var(--transition);
}

/* Password Match Indicator */
.password-match {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: var(--text-sm);
    opacity: 0;
    transition: var(--transition);
}

.password-match.show {
    opacity: 1;
}

.password-match i {
    font-size: var(--text-base);
}

.password-match.matched {
    color: var(--success);
}

.password-match.matched i {
    color: var(--success);
}

.password-match.unmatched {
    color: var(--danger);
}

.password-match.unmatched i {
    color: var(--danger);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .auth-header {
        padding: 20px;
    }
    
    .auth-header h1 {
        font-size: var(--text-2xl);
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-header h1 i {
        font-size: 24px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .input-group-text {
        padding: 0 10px;
    }
    
    .phone-prefix {
        padding: 0 10px;
    }
    
    .phone-prefix + .form-control {
        padding-left: 60px;
    }
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

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

.btn-facebook {
    border-color: #1877F2;
    color: #1877F2;
}

.btn-facebook:hover {
    background: #1877F2;
    color: white;
}

.btn-google:hover {
    background: #4285F4;
    border-color: #4285F4;
    color: white;
}

.btn-apple {
    border-color: #000;
    color: #000;
}

.btn-apple:hover {
    background: #000;
    color: white;
}