/* Login Page Redesign - Pixel Perfect Match */

/* Top Global Bar */
.login-top-bar {
    width: 100% !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 12px 0 !important;
    position: relative !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
    min-height: 56px !important;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-logo {
    display: flex !important;
    align-items: center !important;
    min-height: 32px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.top-bar-logo a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.top-bar-logo-img {
    max-height: 32px !important;
    height: auto !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.top-bar-link {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    padding: 0 12px;
    transition: color 0.2s ease;
}

.top-bar-link:hover {
    color: #374151;
}

.top-bar-divider {
    color: #d1d5db;
    font-size: 14px;
    padding: 0 4px;
}

.top-bar-language {
    margin-left: 12px;
}

.top-bar-language .drp-language {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-language .drp-language .btn {
    background: transparent;
    border: none;
    padding: 6px 24px 6px 12px;
    font-size: 14px;
    color: #6b7280;
}

.top-bar-language .drp-language .dropdown-toggle::after {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

/* Main Login Container */
.login-container {
    width: 100%;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: transparent;
}

.login-card {
    width: 100%;
    max-width: 1300px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    min-height: 650px;
}

/* Left Panel - Login Form */
.login-form-panel {
    flex: 0 0 50%;
    padding: 70px 60px;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.login-form-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.login-logo {
    max-height: 50px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Title and subtitle removed */

.login-form {
    width: 100%;
}

.login-form .form-group {
    margin-bottom: 28px;
}

.login-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
}

.login-form .form-control {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #1a1a1a;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.login-form .form-control::placeholder {
    color: #9ca3af;
}

/* Password Field Wrapper */
.password-field-wrapper {
    position: relative;
}

.password-field-wrapper .form-control {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: #374151;
}

.password-toggle i {
    font-size: 20px;
}

/* Error Messages */
.error-message {
    display: block;
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
}

.error-message small {
    display: block;
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: right;
    margin-top: 10px;
}

.forgot-password-link a {
    font-size: 14px;
    color: #9333ea;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.forgot-password-link a:hover {
    color: #7e22ce;
    text-decoration: underline;
}

/* Sign In Button */
.btn-signin {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
    margin-top: 8px;
}

.btn-signin:hover:not(:disabled) {
    background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 100%);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
    transform: translateY(-1px);
}

.btn-signin:active:not(:disabled) {
    transform: translateY(0);
}

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

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 36px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    padding: 0 18px;
    font-size: 14px;
    color: #9ca3af;
    background: #ffffff;
    font-weight: 400;
}

/* Social Login Buttons */
.social-login-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 32px;
}

.social-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.social-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

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

.social-btn svg {
    width: 24px;
    height: 24px;
}

/* Register Link */
.register-link {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 28px;
}

.register-link a {
    color: #9333ea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-link a:hover {
    color: #7e22ce;
    text-decoration: underline;
}

/* Right Panel - Illustration */
.login-illustration-panel {
    flex: 0 0 50%;
    position: relative;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 15%, #fbbf24 30%, #f59e0b 45%, #d97706 60%, #92400e 75%, #7c3aed 90%, #6d28d9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    overflow: hidden;
}

.illustration-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.illustration-frame {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 10%, #fbbf24 20%, #f59e0b 30%, #d97706 40%, #92400e 50%, #7c3aed 60%, #6d28d9 70%, #5b21b6 80%, #4c1d95 100%);
}

.illustration-gradient {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

/* Sun */
.sun {
    position: absolute;
    top: 8%;
    right: 12%;
    width: 140px;
    height: 140px;
    background: #fef3c7;
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(254, 243, 199, 0.9), 0 0 120px rgba(254, 243, 199, 0.6);
    z-index: 2;
}

/* Clouds */
.clouds {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 45%;
    height: 25%;
    z-index: 3;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cloud-1 {
    width: 140px;
    height: 70px;
    top: 0;
    right: 0;
    box-shadow: 25px 0 0 -12px rgba(255, 255, 255, 0.95),
                50px 12px 0 -25px rgba(255, 255, 255, 0.95);
}

.cloud-2 {
    width: 120px;
    height: 60px;
    top: 50px;
    right: 80px;
    box-shadow: 20px 0 0 -10px rgba(255, 255, 255, 0.95),
                40px 10px 0 -18px rgba(255, 255, 255, 0.95);
}

/* Mountains */
.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    z-index: 1;
}

.mountain {
    position: absolute;
    bottom: 0;
    background: #4c1d95;
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
}

.mountain-1 {
    left: 0;
    width: 220px;
    height: 220px;
    background: #5b21b6;
}

.mountain-2 {
    left: 180px;
    width: 200px;
    height: 180px;
    background: #6d28d9;
}

.mountain-3 {
    left: 340px;
    width: 180px;
    height: 160px;
    background: #7c3aed;
}

/* Illustration Footer */
.illustration-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 4;
}

.illustration-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0 0 20px 0;
    padding: 0 20px;
}

/* Pagination Dots */
.illustration-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot.active {
    background: #9333ea;
    border-color: #9333ea;
    width: 12px;
    height: 12px;
}

.pagination-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Override existing auth styles for login page */
.custom-login {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 15%, #80deea 30%, #4dd0e1 45%, #26c6da 60%, #00bcd4 75%, #00acc1 90%, #0097a7 100%);
}

.custom-login .custom-wrapper {
    padding: 0 !important;
    max-width: 100% !important;
}

.custom-login .custom-wrapper .custom-row {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    margin: 0;
}

.custom-login .custom-wrapper .custom-row .card {
    width: 100%;
    max-width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
    margin: 0;
}

.custom-login .custom-wrapper .custom-row .card .card-body {
    padding: 0;
    background: transparent;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

/* Responsive Design */
@media only screen and (max-width: 1200px) {
    .login-card {
        max-width: 1100px;
    }

    .login-form-panel {
        padding: 60px 50px;
    }

    .login-illustration-panel {
        padding: 50px 40px;
    }
}

@media only screen and (max-width: 1024px) {
    .login-card {
        flex-direction: column;
        max-width: 700px;
        min-height: auto;
    }

    .login-form-panel {
        flex: 1;
        padding: 50px 40px;
    }

    .login-illustration-panel {
        flex: 1;
        min-height: 400px;
        padding: 40px 30px;
    }

    .illustration-frame {
        min-height: 350px;
    }

    .top-bar-container {
        padding: 0 30px;
    }
}

@media only screen and (max-width: 768px) {
    .login-container {
        padding: 20px 15px;
        min-height: calc(100vh - 50px);
    }

    .login-card {
        border-radius: 24px;
        min-height: auto;
    }

    .login-form-panel {
        padding: 40px 30px;
    }

    /* Title and subtitle removed */

    .login-illustration-panel {
        min-height: 350px;
        padding: 30px 20px;
    }

    .illustration-frame {
        min-height: 300px;
    }

    .sun {
        width: 100px;
        height: 100px;
        top: 10%;
        right: 15%;
    }

    .mountain-1 {
        width: 150px;
        height: 150px;
    }

    .mountain-2 {
        left: 130px;
        width: 140px;
        height: 130px;
    }

    .mountain-3 {
        left: 250px;
        width: 130px;
        height: 120px;
    }

    .illustration-text {
        font-size: 15px;
    }

    .top-bar-container {
        padding: 0 20px;
        flex-wrap: wrap;
    }

    .top-bar-links {
        flex-wrap: wrap;
        gap: 4px;
    }

    .top-bar-link {
        padding: 0 8px;
        font-size: 13px;
    }
}

@media only screen and (max-width: 430px) {
    .login-container {
        padding: 15px 10px;
        min-height: calc(100vh - 45px);
    }

    .login-card {
        border-radius: 20px;
    }

    .login-form-panel {
        padding: 35px 25px;
    }

    /* Title and subtitle removed */

    .login-form .form-control {
        padding: 14px 16px;
        font-size: 14px;
    }

    .btn-signin {
        padding: 14px 20px;
        font-size: 15px;
    }

    .social-login-buttons {
        gap: 12px;
    }

    .social-btn {
        width: 52px;
        height: 52px;
    }

    .login-illustration-panel {
        min-height: 300px;
        padding: 25px 15px;
    }

    .illustration-frame {
        min-height: 250px;
    }

    .sun {
        width: 80px;
        height: 80px;
    }

    .mountain-1,
    .mountain-2,
    .mountain-3 {
        width: 100px;
        height: 100px;
    }

    .mountain-2 {
        left: 90px;
    }

    .mountain-3 {
        left: 170px;
    }

    .illustration-text {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .pagination-dot {
        width: 8px;
        height: 8px;
    }

    .pagination-dot.active {
        width: 10px;
        height: 10px;
    }

    .top-bar-container {
        padding: 0 15px;
    }

    .top-bar-link {
        padding: 0 6px;
        font-size: 12px;
    }

    .top-bar-divider {
        padding: 0 2px;
    }
}
