/* ============================================
   Authentication Pages - Custom Styles
   ============================================ */

/* Color Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
    --primary-color: #00aaff;
    --secondary-color: #0088cc;
    --success-color: #27C200;
    --danger-color: #FF4F4F;
    --warning-color: #ffc107;
    --dark-color: #191F33;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --white: #ffffff;
}

/* ============================================
   General Auth Styles
   ============================================ */

.auth-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 200px);
}

.auth-container {
    max-width: 1140px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 700px;
}

.auth-card .row {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.auth-card .row > div {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.auth-card:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* ============================================
   Features Section
   ============================================ */

.auth-features {
    background: var(--primary-gradient);
    padding: 60px 40px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    height: 100%;
}

.auth-features-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.auth-features-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    animation: fadeInLeft 0.6s ease;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.feature-icon i {
    font-size: 28px;
    color: var(--white);
}

.feature-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.feature-content p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* ============================================
   Form Section
   ============================================ */

.auth-form-section {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    height: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-logo i {
    font-size: 40px;
    color: var(--white);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 0;
}

/* ============================================
   Form Groups & Inputs
   ============================================ */

.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label .text-danger {
    color: var(--danger-color);
}

.input-wrapper {
    position: relative;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.2);
    transform: translateY(-2px);
}

.input-group-text {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-right: none;
    color: var(--gray-600);
    padding: 12px 15px;
}

.form-control {
    border: 1px solid var(--gray-300);
    border-left: none;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
}

.form-text {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 5px;
    display: block;
}

/* Password Strength Meter */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    background: var(--danger-color);
    width: 25%;
}

.password-strength-bar.fair {
    background: var(--warning-color);
    width: 50%;
}

.password-strength-bar.good {
    background: #17a2b8;
    width: 75%;
}

.password-strength-bar.strong {
    background: var(--success-color);
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */

.btn-auth {
    background: var(--primary-gradient);
    border: none;
    color: var(--white);
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.4);
    color: var(--white);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-auth-outline:hover {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.3);
}

.btn-toggle-password {
    background: transparent;
    border: none;
    color: var(--gray-600);
    padding: 0 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-toggle-password:hover {
    color: var(--primary-color);
}

/* ============================================
   Form Options & Checkboxes
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    border: 2px solid var(--gray-300);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    cursor: pointer;
    color: var(--dark-color);
    font-size: 14px;
    margin-bottom: 0;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ============================================
   Dividers
   ============================================ */

.option-divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
}

.option-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.option-divider span {
    background: var(--white);
    padding: 0 20px;
    position: relative;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Auth Footer
   ============================================ */

.auth-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.auth-footer p {
    margin-bottom: 10px;
    color: var(--gray-600);
    font-size: 14px;
}

.auth-footer p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Info Boxes
   ============================================ */

.info-box {
    background: var(--gray-100);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-box h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.info-box ol, .info-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.info-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.delivery-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.delivery-option:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.delivery-option:last-child {
    margin-bottom: 0;
}

.delivery-option i {
    font-size: 28px;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.delivery-option-content {
    flex: 1;
}

.delivery-option-content strong {
    display: block;
    color: var(--dark-color);
    font-size: 15px;
    margin-bottom: 4px;
}

.delivery-option-content p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
}

.delivery-option .badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
}

/* ============================================
   Security Notice
   ============================================ */

.security-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 4px solid var(--warning-color);
    padding: 18px;
    border-radius: 8px;
    margin-top: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.security-notice i {
    color: var(--warning-color);
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.security-notice p {
    margin: 0;
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

.security-notice strong {
    color: #664d03;
}

/* ============================================
   Success Page Styles
   ============================================ */

.success-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #27C200 0%, #20a000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.6s ease-in-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon i {
    font-size: 50px;
    color: var(--white);
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.success-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 40px;
}

.steps-container {
    margin: 40px 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step:hover {
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--dark-color);
    font-size: 16px;
    margin-bottom: 6px;
}

.step-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
}

.resend-section {
    background: var(--gray-100);
    padding: 30px;
    border-radius: 12px;
    margin: 35px 0;
}

.resend-section p {
    margin-bottom: 20px;
    color: var(--gray-600);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 35px;
}

.action-buttons .btn {
    min-width: 200px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991px) {
    .auth-features {
        min-height: auto;
        padding: 40px 30px;
    }
    
    .auth-form-section {
        padding: 40px 30px;
        min-height: auto;
    }
    
    .auth-features-title {
        font-size: 28px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-card {
        min-height: auto;
    }
}

@media (max-width: 767px) {
    .auth-section {
        padding: 40px 0;
    }
    
    .auth-features {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .auth-form-section {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .auth-features-title {
        font-size: 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 15px;
    }
    
    .auth-card {
        min-height: auto;
    }
}

/* ============================================
   Alert Customization
   ============================================ */

.alert {
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    color: #856404;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}
