﻿/* ===================================
   Identity Pages - Premium Login Design
   =================================== */

/* CSS Variables */
:root {
    --primary-red: #ED0B43;
    --text-color: #FFF1F9;
    --label-color: #FFFFFF99;
    --bg-dark: #000000;
    --input-bg: #1a2332;
    --input-border: #2d3748;
    --input-focus: #3d4a5e;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.identity-wrapper {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

/* Login Container */
.login-container {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title-small {
    font-size: 13px;
    font-weight: 400;
    color: var(--label-color);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-brand {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

    .login-brand .brand-first {
        color: #FFFFFF;
        font-weight: 300;
    }

    .login-brand .brand-last {
        color: var(--primary-red);
        font-weight: 600;
    }

    .login-brand img {
        max-width: 100%;
        height: auto;
        max-height: 80px;
        /* Optional: constrain height if needed */
        object-fit: contain;
    }

.login-tagline {
    font-size: 13px;
    line-height: 1.6;
    color: var(--label-color);
    max-width: 320px;
    margin: 0 auto;
}

/* Form Styles */
.login-form {
    margin-top: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--label-color);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 44px 14px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

    .form-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

    .form-input:focus {
        background: var(--input-focus);
        border-color: var(--primary-red);
        box-shadow: 0 0 0 3px rgba(237, 11, 67, 0.1);
    }

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--label-color);
    font-size: 16px;
    pointer-events: none;
}

    /* Email Icon - Font Awesome */
    .input-icon.email::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 400;
        content: "\f0e0";
    }

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--label-color);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle:hover {
        color: var(--text-color);
    }

    .password-toggle:focus {
        outline: none;
    }

    /* Eye icons - Font Awesome */
    .password-toggle .eye-open::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        content: "\f070";
    }

    .password-toggle .eye-closed::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        content: "\f06e";
    }

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

    .checkbox-wrapper input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 10px;
        cursor: pointer;
        accent-color: var(--primary-red);
    }

    .checkbox-wrapper label {
        font-size: 14px;
        color: var(--label-color);
        cursor: pointer;
        user-select: none;
        margin: 0px !important;
    }

/* Button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ED0B43 0%, #C90939 100%);
    border: none;
    border-radius: 16px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(237, 11, 67, 0.3);
    margin-top: 8px;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #FF0D4D 0%, #E00A3F 100%);
        box-shadow: 0 6px 20px rgba(237, 11, 67, 0.4);
        transform: translateY(-2px);
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* Links */
.forgot-password {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: #FF0D4D;
        text-decoration: underline;
    }

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Validation */
.text-danger {
    display: block;
    font-size: 12px;
    color: #ff4d4d;
    margin-top: 6px;
}

.validation-summary-errors {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

    .validation-summary-errors ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .validation-summary-errors li {
        font-size: 13px;
        color: #ff4d4d;
        margin: 4px 0;
    }

/* Mobile Responsive */
@media (max-width: 576px) {
    .login-container {
        padding: 36px 24px;
    }

    .login-brand {
        font-size: 36px;
    }

    .login-tagline {
        font-size: 12px;
    }

    .form-input {
        padding: 12px 14px 12px 40px;
        font-size: 13px;
    }

    .btn-login {
        padding: 14px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 15px;
    }

    .login-container {
        padding: 28px 20px;
    }

    .login-brand {
        font-size: 32px;
    }
}

/* Smooth Transitions */
a,
button,
input {
    transition: all 0.3s ease;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}
