/* Modern Theme - Black & Green with Dark/Light Mode */
:root {
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --success-gradient: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --dark-gradient: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.25);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --green-primary: #10b981;
    --green-dark: #059669;
    --black-primary: #1f2937;
    --black-darker: #111827;
}

/* Light Mode (Default) */
body {
    background: #ffffff;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body.dark-mode {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.theme-toggle i {
    font-size: 24px;
    color: #ffffff;
}

.account-pages {
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    padding: 0 !important;
    margin: 0 !important;
}

.row.main-row {
    height: 100vh;
    margin: 0 !important;
    overflow: hidden;
    --bs-gutter-x: 0 !important;
    background: #ffffff !important;
}

body.dark-mode .row.main-row {
    background: transparent !important;
}

.col-lg-6 {
    height: 100vh;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50%;
    max-width: 50%;
}

.auth-box {
    width: 90%;
    max-width: 500px;
    padding: 40px 35px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(16, 185, 129, 0.1);
    overflow-y: auto;
    max-height: 95vh;
}

body.dark-mode .auth-box {
    background: #1f2937;
    border-color: rgba(16, 185, 129, 0.3);
}

.auth-box::-webkit-scrollbar {
    width: 6px;
}

.auth-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

body.dark-mode .auth-box::-webkit-scrollbar-track {
    background: #111827;
}

.auth-box::-webkit-scrollbar-thumb {
    background: var(--green-primary);
    border-radius: 10px;
}

.auth-box::-webkit-scrollbar-thumb:hover {
    background: var(--green-dark);
}

.auth-logo {
    display: block;
    text-align: center;
}

.auth-logo img {
    height: 60px !important;
    width: auto !important;
    margin: 0 auto !important;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.auth-logo:hover img {
    transform: scale(1.05);
}

.form-floating-custom {
    position: relative;
}

.form-floating-custom .form-control,
.input-group .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition-smooth);
    background: #f9fafb;
}

body.dark-mode .form-floating-custom .form-control,
body.dark-mode .input-group .form-control {
    background: #374151;
    border-color: #4b5563;
    color: #ffffff;
}

.form-floating-custom .form-control:focus,
.input-group .form-control:focus {
    border-color: var(--green-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

body.dark-mode .form-floating-custom .form-control:focus,
body.dark-mode .input-group .form-control:focus {
    background: #1f2937;
    border-color: var(--green-primary);
}

.form-floating-custom label {
    color: #6b7280;
    font-weight: 500;
    padding-left: 16px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

body.dark-mode .form-floating-custom label {
    color: #9ca3af;
}

.form-label {
    color: #374151;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 14px;
}

body.dark-mode .form-label {
    color: #d1d5db;
}

.input-group-text {
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: #f9fafb;
    color: var(--green-primary);
    font-weight: 600;
}

body.dark-mode .input-group-text {
    background: #374151;
    border-color: #4b5563;
    color: var(--green-primary);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

#password-addon {
    border: none;
    background: transparent;
    z-index: 10;
}

#password-addon i {
    color: var(--green-primary);
    transition: var(--transition-smooth);
}

#password-addon:hover i {
    transform: scale(1.1);
    color: var(--green-dark);
}

.form-check-input {
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.form-check-input:checked {
    background: var(--primary-gradient);
    border-color: var(--green-primary);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    color: #4b5563;
    position: relative;
    z-index: 1;
}

body.dark-mode .form-check-label {
    color: #9ca3af;
}

.form-check-label a {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    pointer-events: auto;
    z-index: 3;
}

.form-check-label a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

.form-check-label a:hover::after {
    width: 100%;
}

.btn-dark {
    background: var(--dark-gradient);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-dark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--primary-gradient);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-dark:hover::before {
    width: 300px;
    height: 300px;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

.btn-dark:active {
    transform: translateY(0);
}

.auth-content h4 {
    font-size: 24px;
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 6px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.dark-mode .auth-content h4 {
    color: #ffffff;
}

.auth-content h4 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
    font-weight: 800;
    display: inline !important;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.text-muted {
    color: #6b7280 !important;
}

body.dark-mode .text-muted {
    color: #9ca3af !important;
}

.badge.bg-light {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    color: var(--green-dark) !important;
    border: 2px solid var(--green-primary);
    font-weight: 600;
}

body.dark-mode .badge.bg-light {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    color: #d1fae5 !important;
    border-color: var(--green-primary);
}

hr {
    margin: 20px 0;
    border-color: #e5e7eb;
    opacity: 1;
}

body.dark-mode hr {
    border-color: #4b5563;
}

.client-images {
    transition: var(--transition-smooth);
    padding: 10px;
    border-radius: 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
}

body.dark-mode .client-images {
    background: #374151;
    border-color: #4b5563;
}

.client-images:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.2);
    background: #ffffff;
    border-color: var(--green-primary);
}

body.dark-mode .client-images:hover {
    background: #1f2937;
}

.client-images img {
    max-height: 30px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.client-images:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.bg-login {
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: var(--dark-gradient);
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

body.dark-mode .bg-login {
    background: linear-gradient(135deg, #111827 0%, #000000 100%);
}

.bg-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    z-index: 1;
}

.bg-login img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
    top: 0;
    left: 0;
}

.bg-login .auth-contain {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel {
    width: 100%;
}

.carousel-inner {
    display: flex;
    align-items: center;
    min-height: 400px;
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-item h3 {
    font-weight: 700;
    font-size: 26px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.carousel-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #d1fae5;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--green-primary);
    background: transparent;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.carousel-indicators button.active {
    background: var(--green-primary);
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--green-primary);
}

/* Link colors */
a[href="signin.html"],
a[href="signup.html"],
a[href="recover-pass.html"],
a[href="forgot-pass.html"] {
    color: var(--green-primary) !important;
    transition: var(--transition-smooth);
}

a[href="signin.html"]:hover,
a[href="signup.html"]:hover,
a[href="recover-pass.html"]:hover,
a[href="forgot-pass.html"]:hover {
    color: var(--green-dark) !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .bg-login {
        display: none !important;
    }
    
    .col-lg-6:first-child {
        display: none !important;
    }
    
    .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .auth-box {
        width: 95%;
        max-width: 500px;
    }
}

@media (max-width: 575.98px) {
    .auth-box {
        padding: 30px 25px;
        width: 90%;
    }
    
    .auth-content h4 {
        font-size: 20px;
    }
    
    .btn-dark {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
    
    .theme-toggle i {
        font-size: 20px;
    }
    
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .account-pages {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .row.main-row {
        height: auto;
        min-height: 100vh;
    }
    
    .col-lg-6 {
        height: auto !important;
        min-height: 100vh;
    }
    
    .auth-box {
        max-height: none;
        overflow-y: visible;
    }
}

/* Loading animation */
.btn-dark.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-dark.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--green-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Message boxes */
#signup-message,
#login-message,
#reset-message,
#success-alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Compact spacing */
.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 0.75rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 1.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

/* Partner section */
.mt-5.pt-3 {
    border-top: 2px solid #e5e7eb;
}

body.dark-mode .mt-5.pt-3 {
    border-top-color: #4b5563;
}

.mt-5.pt-3 p {
    color: var(--black-primary) !important;
}

body.dark-mode .mt-5.pt-3 p {
    color: #d1d5db !important;
}

/* Invalid feedback */
.invalid-feedback {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-control.is-valid {
    border-color: var(--green-primary);
}
