﻿/* ===================================
   FOREM - LOGIN PAGE (Centered)
   Full Responsive Design
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Main Wrapper - Centered */
.login-wrapper {
    display: flex;
    justify-content: center;
    min-height: 80vh;
    width: 100%;
    padding:25px;
   
}

/* ===================================
   LOGIN FORM PANEL (Centered)
   =================================== */
.login-right-panel {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-form-container {
    width: 100%;
    padding: 48px 40px;
}

.form-header {
    margin-bottom: 32px;
    text-align: center;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.form-description {
    font-size: 15px;
    color: #7f8c8d;
    margin: 0;
}

.login-form {
    width: 100%;
}

/* ===================================
   INPUT STYLES
   =================================== */
. input-group {
    margin-bottom: 24px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

    .input-label svg {
        color: #FF6B35;
        flex-shrink: 0;
    }

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    color: #2c3e50;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .form-input:focus {
        outline: none;
        background: #ffffff;
        border-color: #FF6B35;
        box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    }

    .form-input::placeholder {
        color: #adb5bd;
    }

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

    .password-input-wrapper .form-input {
        padding-right: 48px;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #7f8c8d;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    . password-toggle:hover {
        color: #FF6B35;
    }

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* ===================================
   FORM OPTIONS
   =================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    cursor: pointer;
    accent-color: #FF6B35;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.forgot-link {
    font-size: 14px;
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .forgot-link:hover {
        color: #e65a2b;
    }

/* ===================================
   SUBMIT BUTTON
   =================================== */
.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

    .submit-btn:hover {
        background: linear-gradient(135deg, #e65a2b 0%, #FF6B35 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
    }

    . submit-btn:active {
        transform: translateY(0);
    }

    . submit-btn svg {
        flex-shrink: 0;
    }

/* ===================================
   DIVIDER
   =================================== */
.divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    color: #adb5bd;
    font-size: 14px;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e9ecef;
    }

    . divider span {
        padding: 0 16px;
        white-space: nowrap;
    }

/* ===================================
   REGISTER SECTION
   =================================== */
.register-section {
    text-align: center;
}

    .register-section p {
        margin: 0;
        font-size: 15px;
        color: #6c757d;
    }

    .register-section a {
        color: #FF6B35;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .register-section a:hover {
            color: #e65a2b;
            text-decoration: underline;
        }

/* ===================================
   LOADING STATE
   =================================== */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

    . submit-btn. loading svg {
        animation: rotate 1s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 16px;
    }

    .login-right-panel {
        max-width: 100%;
        border-radius: 20px;
    }

    .login-form-container {
        padding: 40px 32px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-description {
        font-size: 14px;
    }
}

/* Mobile Large (576px and below) */
@media (max-width: 576px) {
    .login-wrapper {
        padding: 12px;
    }

    .login-right-panel {
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }

    .login-form-container {
        padding: 32px 24px;
    }

    .form-title {
        font-size: 26px;
    }

    .form-description {
        font-size: 14px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forgot-link {
        width: 100%;
        text-align: left;
    }

    .input-label {
        font-size: 13px;
    }

    .form-input {
        padding: 13px 14px;
        font-size: 14px;
    }

    . password-input-wrapper . form-input {
        padding-right: 44px;
    }

    .submit-btn {
        padding: 15px 20px;
        font-size: 15px;
    }

    .divider {
        margin: 24px 0;
        font-size: 13px;
    }

    . register-section p {
        font-size: 14px;
    }
}

/* Mobile Small (400px and below) */
@media (max-width: 400px) {
    .login-wrapper {
        padding: 8px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-form-container {
        padding: 28px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    . form-description {
        font-size: 13px;
    }

    .input-label svg {
        width: 16px;
        height: 16px;
    }

    .form-input {
        padding: 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 14px 18px;
        font-size: 14px;
    }

        .submit-btn svg {
            width: 18px;
            height: 18px;
        }
}

/* Very Small Screens (350px and below) */
@media (max-width: 350px) {
    .login-form-container {
        padding: 24px 16px;
    }

    .form-title {
        font-size: 22px;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .checkbox-label,
    .forgot-link {
        font-size: 13px;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 600px) and (orientation: landscape) {
    .login-wrapper {
        padding: 20px;
        align-items: flex-start;
    }

    .login-form-container {
        padding: 30px 32px;
    }

    .form-header {
        margin-bottom: 24px;
    }

    .input-group {
        margin-bottom: 18px;
    }

    .form-options {
        margin-bottom: 20px;
    }

    .divider {
        margin: 20px 0;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-input,
    .submit-btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
