/* ============================================
   MODERN LOGIN - BEAUTIFUL DESIGN
   ============================================ */

:root {
    --primary: #1c799b;
    --primary-light: #2a9cc4;
    --primary-dark: #155a73;
    --primary-very-light: #e8f4f9;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --error: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(28, 121, 155, 0.12);
    --shadow-lg: 0 16px 48px rgba(28, 121, 155, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
        "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    color: var(--text-primary);
}

/* ============================================
   CONTAINER
   ============================================ */

.login-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f9fc 0%, #e8f4f9 100%);
}

/* ============================================
   CARD
   ============================================ */

.login-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(28, 121, 155, 0.2);
}

/* ============================================
   LEFT IMAGE SECTION
   ============================================ */

.login-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 121, 155, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
}

/* ============================================
   RIGHT FORM SECTION
   ============================================ */

.login-form {
    flex: 1;
    padding: 60px 50px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--primary);
    text-align: left;
}

.login-form .subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: left;
}

/* ============================================
   FORM GROUPS
   ============================================ */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--primary-very-light);
    box-shadow: 0 0 0 8px rgba(28, 121, 155, 0.05);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* ============================================
   PASSWORD WRAPPER
   ============================================ */

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 10px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   CHECKBOX & REMEMBER
   ============================================ */

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   REMEMBER & FORGOT WRAPPER
   ============================================ */

.remember-forgot-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
}

.forgot-password-link {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    color: #ffffff;
    height: 52px;
    width: 100%;
    line-height: 52px;
    padding: 0;
    box-shadow: 0 8px 16px rgba(28, 121, 155, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(28, 121, 155, 0.3);
    background: linear-gradient(
        135deg,
        var(--primary-light) 0%,
        var(--primary) 100%
    );
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(28, 121, 155, 0.2);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 8px rgba(28, 121, 155, 0.1);
}

.btn-social {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    height: 50px;
    line-height: 50px;
    padding: 0;
    width: 100%;
    margin-bottom: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary-very-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-social i {
    margin-right: 10px;
    font-size: 16px;
}

/* ============================================
   DIVIDER
   ============================================ */

.divider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider-text {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   SIGNUP CONTAINER
   ============================================ */

.signup-container {
    margin-top: auto;
    padding-top: 32px;
    border-top: 2px solid var(--border-light);
    text-align: center;
}

.signup-container p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.signup-link {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(28, 121, 155, 0.2);
}

.signup-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(28, 121, 155, 0.3);
    text-decoration: none;
    color: #ffffff;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.w-100 {
    width: 100% !important;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.flex-grow-1 {
    flex-grow: 1;
}

.text-center {
    text-align: center;
}

.me-2 {
    margin-right: 8px;
}

.me-1 {
    margin-right: 4px;
}

.pre-load {
    position: relative;
}

.border {
    border: 2px solid var(--border-color) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .login-image {
        display: none;
    }

    .login-card {
        max-width: 500px;
    }

    .login-form {
        padding: 50px 40px;
    }

    .login-form h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .login-container {
        padding: 30px 15px;
    }

    .login-form {
        padding: 40px 25px;
    }

    .login-form h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .login-form .subtitle {
        margin-bottom: 30px;
    }

    .form-control {
        height: 48px;
        font-size: 16px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .btn-primary,
    .btn-social,
    .signup-link {
        height: 48px;
        line-height: 48px;
        font-size: 15px;
    }

    .remember-forgot-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .divider-wrapper {
        margin: 28px 0;
    }
}

/* ============================================
   MODERN REGISTER - BEAUTIFUL DESIGN
   ============================================ */

:root {
    --primary: #1c799b;
    --primary-light: #2a9cc4;
    --primary-dark: #155a73;
    --primary-very-light: #e8f4f9;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --error: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(28, 121, 155, 0.12);
    --shadow-lg: 0 16px 48px rgba(28, 121, 155, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
        "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    color: var(--text-primary);
}

/* ============================================
   CONTAINER
   ============================================ */

.login-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f9fc 0%, #e8f4f9 100%);
}

/* ============================================
   CARD
   ============================================ */

.login-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(28, 121, 155, 0.2);
}

/* ============================================
   LEFT IMAGE SECTION
   ============================================ */

.login-image {
    flex: 1;
    color: #fd5f74 !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   RIGHT FORM SECTION
   ============================================ */

.login-form {
    flex: 1;
    padding: 50px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
}

.login-form h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--primary);
    text-align: left;
}

.login-form .subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: left;
}

/* ============================================
   FORM GROUPS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: var(--primary-very-light);
    box-shadow: 0 0 0 8px rgba(28, 121, 155, 0.05);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* ============================================
   PASSWORD WRAPPER
   ============================================ */

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 10px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* ============================================
   CHECKBOX & TERMS
   ============================================ */

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
    padding: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.form-check-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.form-check-label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    color: #ffffff;
    height: 52px;
    width: 100%;
    line-height: 52px;
    padding: 0;
    box-shadow: 0 8px 16px rgba(28, 121, 155, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(28, 121, 155, 0.3);
    background: linear-gradient(
        135deg,
        var(--primary-light) 0%,
        var(--primary) 100%
    );
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(28, 121, 155, 0.2);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 8px rgba(28, 121, 155, 0.1);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #e5e7eb 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-social {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    height: 50px;
    line-height: 50px;
    padding: 0;
    width: 100%;
    margin-bottom: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary-very-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-social i {
    margin-right: 10px;
    font-size: 16px;
}

/* ============================================
   DIVIDER
   ============================================ */

.divider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider-text {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   LOGIN LINK CONTAINER
   ============================================ */

.login-link-container {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--primary-light) 100%
    );
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(28, 121, 155, 0.2);
}

.login-link-container a {
    display: block;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-link-container:hover {
    box-shadow: 0 12px 24px rgba(28, 121, 155, 0.3);
    transform: translateY(-2px);
}

.login-link-container:hover a {
    color: #ffffff;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.w-100 {
    width: 100% !important;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.flex-grow-1 {
    flex-grow: 1;
}

.text-center {
    text-align: center;
}

.me-2 {
    margin-right: 8px;
}

.me-1 {
    margin-right: 4px;
}

.pre-load {
    position: relative;
}

.border {
    border: 2px solid var(--border-color) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .login-image {
        display: none;
    }

    .login-card {
        max-width: 500px;
    }

    .login-form {
        padding: 45px 35px;
    }

    .login-form h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .login-container {
        padding: 25px 15px;
    }

    .login-form {
        padding: 35px 20px;
        max-height: 100vh;
    }

    .login-form h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .login-form .subtitle {
        margin-bottom: 25px;
        font-size: 14px;
    }

    .form-control {
        height: 48px;
        font-size: 16px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-primary,
    .btn-social {
        height: 48px;
        line-height: 48px;
        font-size: 15px;
    }

    .divider-wrapper {
        margin: 24px 0;
    }

    .login-link-container a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .form-check {
        margin-bottom: 24px;
    }
}
.form-group.mb-3 {
    margin: 1px 0px 15px 0px !important;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top-color: hsl(196, 69%, 36%);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preloader.active {
    display: flex !important;
}
