:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #6c757d;
    --light-bg: #f8fafc;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --input-border: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 700px;
    display: flex;
    align-items: center;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: none;
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-height: 700px;
    display: flex;
}

.login-left {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a56d4 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow: auto;
}

.login-right {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow: auto;
}

.login-logo {
    max-height: 60px;
    margin-bottom: 20px;
    width: auto;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.login-subtitle {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

.form-label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    padding: 12px 14px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    height: 48px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

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

.input-group-text {
    background-color: white;
    border: 2px solid var(--input-border);
    border-left: none;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.3s;
    height: 48px;
}

.input-group-text:hover {
    background-color: #f8fafc;
}

.password-toggle {
    color: var(--secondary-color);
    font-size: 16px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 13px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
    height: 48px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
}

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

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

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: #475569;
    font-size: 14px;
}

/* Success Alert */
.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #065f46;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Error Alert */
.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #7f1d1d;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message i {
    font-size: 12px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

.feature-list i {
    background: rgba(255, 255, 255, 0.2);
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.copyright {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
}

.animation-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.animation-container dotlottie-wc {
    width: 100% !important;
    height: 200px !important;
}

/* Content wrapper for vertical centering */
.login-content {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

/* Mobile Animation */
.mobile-animation {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.mobile-animation dotlottie-wc {
    width: 100% !important;
    height: 150px !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .login-container {
        max-height: 600px;
    }

    .login-card {
        max-height: 600px;
    }

    .login-left,
    .login-right {
        padding: 30px;
    }

    .login-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        padding: 0px;
    }

    .login-container {
        max-height: none;
        height: auto;
    }



    .login-card {
        flex-direction: column;
        max-height: none;
        height: auto;
        min-height: 100vh;
        border-radius: 0px;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 30px 20px;
        justify-content: center;
        min-height: 100vh;
    }

    .login-logo {
        max-height: 72px;
        margin-bottom: 0px;
        width: auto;
    }

    .mobile-logo {
        text-align: center;
        margin-bottom: 20px;
    }

    .mobile-animation {
        margin-top: 0px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .login-right {
        padding: 25px 15px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .form-control {
        padding: 11px 12px;
        font-size: 13px;
    }

    .btn-login {
        padding: 12px;
        font-size: 14px;
    }
}

/* iPad / Tablet specific styles (820px x 1180px) */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait),
(min-width: 768px) and (max-width: 1180px) and (orientation: landscape) {

    /* Adjust login card height */
    .login-container {
        max-height: 90vh;
    }

    .login-card {
        max-height: 90vh;
        flex-direction: row;
    }

    /* Left side adjustments */
    .login-left {
        flex: 1.1;
        padding: 30px;
    }

    .login-left .login-content {
        max-width: 95%;
    }

    /* Right side adjustments */
    .login-right {
        flex: 1;
        padding: 30px;
        min-height: auto;
        justify-content: center;
    }

    .login-title {
        font-size: 22px;
    }

    .login-subtitle {
        font-size: 15px;
    }

    /* Mobile animation adjustments */
    .mobile-animation dotlottie-wc {
        height: 180px !important;
        width: auto !important;
    }

    /* Adjust form controls */
    .form-control {
        font-size: 14px;
        padding: 12px 14px;
    }

    .btn-login {
        font-size: 15px;
        padding: 12px;
    }
}


@media (max-height: 700px) and (min-width: 769px) {
    .login-container {
        max-height: 95vh;
    }

    .login-card {
        max-height: 95vh;
    }

    .login-left,
    .login-right {
        padding: 25px;
        overflow-y: auto;
    }

    .login-logo {
        max-height: 50px;
    }

    .login-title {
        font-size: 20px;
    }

    .feature-list li {
        margin-bottom: 10px;
        font-size: 13px;
    }
}

/* Custom scrollbar for overflow */
.login-left::-webkit-scrollbar,
.login-right::-webkit-scrollbar {
    width: 6px;
}

.login-left::-webkit-scrollbar-track,
.login-right::-webkit-scrollbar-track {
    background: transparent;
}

.login-left::-webkit-scrollbar-thumb,
.login-right::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}