/* Login Page Styles */

/* Login page base styles */
.login-page-body {
    min-height: 100vh;
    overflow: hidden;
}

.login-page-body main {
    background: transparent !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

.login-page-body footer,
.login-page-body header,
.login-page-body #footer,
.login-page-body #header {
    display: none !important;
}

/* Fallback: hide footer/header when login-page is present (before JS adds body class) */
body:has(.login-page) footer,
body:has(.login-page) header,
body:has(.login-page) #footer,
body:has(.login-page) #header {
    display: none !important;
}

.login-page {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Left side - Form */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, #ac8bee 0%, #ccc8c8 100%);
    position: relative;
    z-index: 10;
}

.login-form-container {
    width: 100%;
    max-width: 380px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: #461370;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header p {
    color: #6e4577;
    font-size: 1rem;
}

/* Form inputs */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 25px;
    padding: 5px 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.login-form .input-wrapper:focus-within {
    border-color: #aa3292;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(170, 50, 146, 0.1);
}

.login-form .input-icon {
    color: #aa3292;
    font-size: 1.1rem;
    margin-right: 12px;
}

.login-form .form-control {
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 1rem;
    color: #333 !important;
    width: 100%;
}

.login-form .form-control:focus {
    outline: none;
    box-shadow: none;
}

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

/* Remember me & Forgot */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.login-options .form-check-label {
    color: #666;
}

.login-options .form-check-input:checked {
    background-color: #aa3292;
    border-color: #aa3292;
}

.forgot-link {
    color: #aa3292;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #7c256b;
}

/* Submit button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #aa3292, #7c256b);
    border: none;
    border-radius: 25px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.login-btn:hover {
    background: linear-gradient(135deg, #7c256b, #461370);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(170, 50, 146, 0.4);
}

/* Error messages */
.login-form .invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    padding-left: 20px;
}

.login-form .has-error .input-wrapper {
    border-color: #dc3545;
}

/* Right side - Welcome */
.login-right {
    flex: 1;
    background: linear-gradient(135deg, #692878 0%, #461370 50%, #200c25 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.welcome-content {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.welcome-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Decorative clouds/waves */
.cloud-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 1;
}

.cloud-decoration svg {
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Curved edge on left side of form panel */
.curved-edge {
    position: absolute;
    left: -100px;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 1;
}

.curved-edge::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 0;
    width: 200px;
    height: 120%;
    background: linear-gradient(180deg, #692878 0%, #461370 50%, #200c25 100%);
    border-radius: 0 50% 50% 0;
}

/* Responsive */
@media (max-width: 992px) {
    .login-page {
        flex-direction: column;
    }

    .login-right {
        display: none;
    }

    .login-left {
        min-height: 100vh;
        background: linear-gradient(135deg, rgba(105, 40, 120, 0.05) 0%, rgba(70, 19, 112, 0.1) 100%);
    }

    .curved-edge {
        display: none;
    }
}
