/* Login View Styling - High-Contrast Post Malone Inspired theme */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    background-color: var(--bg-dark);
    /* Mustard yellow canvas */
    position: relative;
    overflow: hidden;
}

/* Poster layout grid line (decorative layout accent) */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 2px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    z-index: 1;
    pointer-events: none;
}

/* High-Contrast Split Container */
.login-container {
    display: flex;
    flex-direction: row;
    background-color: var(--bg-card);
    /* Warm cream card */
    border: 3px solid #000000;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    box-shadow: 12px 12px 0px #000000;
    /* Neo-brutalist solid shadow */
    overflow: hidden;
    z-index: 2;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Sidebar Column (Poster Accent) */
.login-sidebar {
    background-color: #ffffff;
    width: 35%;
    min-width: 160px;
    border-right: 3px solid #000000;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.sidebar-dots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-dots .dot {
    width: 8px;
    height: 8px;
    background-color: #000000;
    border-radius: 50%;
}

.vertical-logo {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: #000000;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    margin: 40px 0;
    font-family: 'Outfit', sans-serif;
    user-select: none;
}

.sidebar-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.sidebar-lines .line {
    width: 4px;
    height: 14px;
    background-color: #000000;
    border-radius: 2px;
}

/* Form Panel */
.login-form-panel {
    width: 65%;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #000000;
    text-transform: uppercase;
}

.brand-title span {
    color: #C9A62C;
    border-bottom: 3px solid #000000;
}

.login-header {
    margin-bottom: 32px;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #000000;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.logo-text span {
    color: #C9A62C;
    /* Contrast golden highlight */
    border-bottom: 3px solid #000000;
}

.subtitle {
    color: var(--text-muted-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Forms & Inputs */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 20px 16px 8px 16px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 15px;
    color: var(--text-muted-dark);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Input Animations */
.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group input:-webkit-autofill+label,
.input-group input:autofill+label {
    top: 6px;
    left: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #C9A62C;
}

/* Custom Autofill Background Override */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    -webkit-text-fill-color: #000000;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group input:focus {
    border-color: #000000;
    box-shadow: 4px 4px 0px #000000;
}

/* Invalid State */
.input-group.invalid input {
    border-color: var(--color-error);
    box-shadow: 4px 4px 0px var(--color-error);
}

.input-group.invalid label {
    color: var(--color-error);
}

.validation-message {
    font-size: 0.8rem;
    color: var(--color-error);
    font-weight: 600;
    margin-top: 6px;
    display: none;
    padding-left: 4px;
}

.input-group.invalid .validation-message {
    display: block;
}

/* Alert Boxes */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid #000000;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 4px 4px 0px #000000;
}

.alert-error {
    background-color: var(--bg-error);
    color: var(--color-error);
    margin-bottom: 20px;
}

.alert-success {
    background-color: var(--bg-success);
    color: var(--color-success);
}

.alert-icon {
    font-size: 1.1rem;
}

/* Solid Flat Black Submit Button (Poster Inverse styling) */
.btn-submit {
    border: 2px solid #000000;
    cursor: pointer;
    background-color: #000000;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
}

.btn-submit:hover:not(:disabled) {
    background-color: #ffffff;
    color: #000000;
    box-shadow: 6px 6px 0px #000000;
}

.btn-submit:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px #000000;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loader Styles */
.btn-loader {
    width: 20px;
    height: 20px;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 100%;
    height: 100%;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Footer Link */
.login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted-dark);
    font-weight: 500;
}

.login-footer a {
    color: #000000;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #C9A62C;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 420px;
    }

    .login-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid #000000;
        flex-direction: row;
        padding: 20px 32px;
    }

    .sidebar-dots,
    .sidebar-lines {
        flex-direction: row;
        gap: 6px;
    }

    .sidebar-lines .line {
        width: 14px;
        height: 4px;
    }

    .vertical-logo {
        writing-mode: horizontal-tb;
        transform: none;
        margin: 0;
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .login-form-panel {
        width: 100%;
        padding: 40px 32px;
    }
}