/* ===== Login Page Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

body.login-page {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ===== Main Container ===== */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ===== Left Panel ===== */
.login-left {
    flex: 0 0 42%;
    background: linear-gradient(160deg, #f7941d 0%, #e8751a 50%, #d45a15 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.login-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.login-logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.15));
}

.login-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-left-content .welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
}

.login-left-content .org-name {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.login-left-content .org-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Feature List */
.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 0;
}

.login-features li .feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ===== Right Panel ===== */
.login-right {
    flex: 1;
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-icon {
    width: 50px;
    height: 50px;
    background: #fff5eb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.login-icon i {
    font-size: 22px;
    color: #f7941d;
}

.login-right .login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.login-right .login-subtitle {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.login-form-group .field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper .input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.login-input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    transition: all 0.3s ease;
    background: #fafffe;
    outline: none;
}

.login-input-wrapper input:focus {
    border-color: #f7941d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.08);
}

.login-input-wrapper input::placeholder {
    color: #ccc;
}

/* Password field with toggle icon needs extra right padding */
.login-input-wrapper .toggle-password ~ input,
.login-input-wrapper input#password {
    padding-right: 48px;
}

/* Remove number input spinners */
.login-input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.login-input-wrapper input[type="number"]::-webkit-outer-spin-button,
.login-input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.login-input-wrapper .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
    transition: color 0.2s;
}

.login-input-wrapper .toggle-password:hover {
    color: #666;
}

/* Remember & Forgot */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f7941d;
    cursor: pointer;
}

.remember-check span {
    font-size: 13px;
    color: #777;
}

.forgot-link {
    font-size: 13px;
    color: #f7941d;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #d45a15;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f7941d 0%, #e8751a 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 148, 29, 0.4);
}

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

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

.login-btn .btn-arrow {
    font-size: 18px;
}

/* Back to Home */
.back-home {
    text-align: center;
    margin-top: 24px;
}

.back-home a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.back-home a:hover {
    color: #f7941d;
}

/* Validation */
.login-form-group .invalid-feedback,
.login-form-group span.invalid-feedback,
.login-form-group label.error {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    color: #dc3545;
    text-align: left;
    font-weight: 500;
}

.login-input-wrapper input.is-invalid,
.login-input-wrapper input.error {
    border-color: #dc3545;
}

.login-input-wrapper input.is-valid {
    border-color: #e8e8e8;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body.login-page {
        padding: 0;
        align-items: stretch;
    }

    .login-container {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .login-left {
        flex: none;
        padding: 40px 30px 35px;
    }

    .login-logo img {
        width: 120px;
    }

    .login-left-content .org-name {
        font-size: 20px;
    }

    .login-left-content .org-subtitle {
        margin-bottom: 20px;
    }

    .login-features {
        display: none;
    }

    .login-right {
        padding: 35px 25px;
        flex: 1;
    }

    .login-right .login-title {
        font-size: 24px;
    }

    .login-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .login-left {
        padding: 30px 20px 25px;
    }

    .login-left-content .org-name {
        font-size: 18px;
    }

    .login-right {
        padding: 30px 20px;
    }

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

    .login-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .login-container {
        max-width: 850px;
    }

    .login-left {
        flex: 0 0 38%;
        padding: 40px 30px;
    }

    .login-right {
        padding: 40px 35px;
    }
}
