﻿.breadcrumb a {
    text-decoration: none;
}

.login-strip {
    padding: 34px 0 44px;
    background: #f6f8fc;
}

.login-layout {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 16px 42px rgba(20, 34, 64, .12);
    overflow: hidden;
    position: relative;
}

.login-head {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 40px;
    background: linear-gradient(155deg, #121a2e 0%, #1c2746 42%, #243a66 100%);
    color: #fff;
}

    .login-head::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 90% 85% at 50% -25%, rgba(255, 106, 0, .18), transparent 55%);
        pointer-events: none;
    }

    .login-head::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: min(320px, 72%);
        height: 3px;
        border-radius: 3px;
        background: linear-gradient(90deg, transparent, rgba(255, 106, 0, .32), #ff5e16, rgba(255, 106, 0, .32), transparent);
    }

.login-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

    .login-title .accent {
        color: #ff4a2a;
    }

.login-sub {
    position: relative;
    z-index: 1;
    margin: 14px auto 0;
    font-size: 20px;
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
    line-height: 1.65;
}

.login-form {
    --label-col: 148px;
    --label-gap: 22px;
    padding: 40px 48px 44px;
    max-width: 680px;
    margin: 0 auto;
}

.login-row {
    display: grid;
    grid-template-columns: var(--label-col) 1fr;
    gap: 16px var(--label-gap);
    align-items: center;
    margin-bottom: 22px;
}

.login-label {
    font-size: 16px;
    font-weight: 600;
    color: #1f2e57;
    text-align: right;
}

.input-with-icon {
    display: flex;
    align-items: center;
    border: 1px solid #ced7e7;
    background: #fff;
    min-height: 48px;
}

    .input-with-icon.error {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.1);
    }

.input-icon {
    width: 46px;
    text-align: center;
    color: #9aa4b3;
    font-size: 18px;
    border-right: 1px solid #e2e8f3;
    flex: 0 0 auto;
}

.input-with-icon input {
    border: 0;
    box-shadow: none;
    width: 100%;
    min-height: 46px;
    font-size: 15px;
    color: #333;
    padding: 0 14px;
}

    .input-with-icon input:focus {
        outline: none;
    }

    .input-with-icon input.error:focus {
        outline: none;
    }

.error-message {
    display: none;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14.5px;
    align-items: flex-start;
}

    .error-message.show {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

.error-icon {
    margin-right: 10px;
    font-size: 18px;
    flex-shrink: 0;
}

.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    grid-column: 2;
}

    .field-error.show {
        display: block;
    }

.remember-row {
    margin: 10px 0 26px;
    padding-left: calc(var(--label-col) + var(--label-gap));
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #374151;
    line-height: 1.5;
}

    .remember-row input {
        margin-top: 4px;
        flex-shrink: 0;
    }

.signin-btn {
    display: block;
    border: none;
    min-height: 50px;
    margin-left: calc(var(--label-col) + var(--label-gap));
    width: calc(100% - var(--label-col) - var(--label-gap));
    box-sizing: border-box;
    background: linear-gradient(90deg, #ff4a2a, #e43f22);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: all 0.3s;
}

    .signin-btn:hover {
        filter: brightness(1.20);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(255, 74, 42, 0.3);
    }

    .signin-btn:active {
        transform: translateY(0);
    }

    .signin-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.forgot-link {
    display: inline-block;
    margin-top: 16px;
    color: #ff4a2a;
    font-size: 14px;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.forgot-wrap {
    text-align: center;
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #eef1f5;
    margin-top: 44px;
    padding-top: 14px;
}

.signup-hint {
    margin: 8px 0 0;
    font-size: 14px;
    color: #4b5563;
}

    .signup-hint a {
        color: #ff4a2a;
        text-decoration: none;
        font-weight: 600;
    }

        .signup-hint a:hover {
            text-decoration: underline;
        }

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

    .loading-overlay.show {
        display: flex;
    }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 74, 42, 0.2);
    border-left-color: #ff4a2a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

    .success-message.show {
        display: flex;
        animation: slideIn 0.3s ease;
    }

.success-icon {
    font-size: 24px;
}

.success-text {
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .login-head {
        padding: 20px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-sub {
        font-size: 15px;
        margin-top: 12px;
    }

    .login-form {
        padding: 26px 18px 30px;
        max-width: none;
    }

    .login-row {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }

    .login-label {
        text-align: left;
        font-size: 15px;
    }

    .input-icon {
        width: 42px;
        font-size: 16px;
    }

    .input-with-icon input {
        font-size: 15px;
        min-height: 44px;
    }

    .remember-row {
        padding-left: 0;
        margin: 6px 0 18px;
        font-size: 14px;
    }

    .signin-btn {
        min-height: 48px;
        font-size: 15px;
        margin-left: 0;
        width: 100%;
    }

    .forgot-wrap {
        margin-left: 0;
        width: 100%;
    }

    .forgot-link {
        font-size: 14px;
    }

    .field-error {
        grid-column: 1;
    }
}
