﻿.login-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-header-content {
    flex: 1;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f3f4f6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
}

    .back-btn:hover {
        background: #e5e7eb;
    }

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 16px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
}

.custom-input {
    width: 100%;
    height: 54px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 0 48px 0 18px;
    font-size: 15px;
    outline: none;
    transition: all .25s ease;
}

.has-toggle .custom-input {
    padding: 0 48px;
}

.has-toggle .custom-input[type="password"] {
    direction: rtl;
    text-align: right;
}

.has-toggle .custom-input[type="text"] {
    direction: ltr;
    text-align: left;
}

.password-toggle {
    position: absolute;
    left: 12px;
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: color .2s ease, background .2s ease;
}

    .password-toggle:hover {
        color: #2563eb;
        background: rgba(37, 99, 235, .08);
    }

.input-wrapper.is-visible .input-icon {
    right: auto;
    left: 16px;
}

.input-wrapper.is-visible .password-toggle {
    left: auto;
    right: 12px;
}

    .custom-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,.1);
    }

    .custom-input::placeholder {
        color: #9ca3af;
    }

.cta-button {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all .25s ease;
}

    .cta-button:disabled {
        background: #cbd5e1;
        cursor: not-allowed;
    }

    .cta-button:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(37,99,235,.25);
    }

.password-login-btn {
    margin: -6px auto 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color .25s ease;
}

    .password-login-btn:hover {
        color: #1d4ed8;
    }

.step-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.step-subtitle {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

    .remember-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #2563eb;
        cursor: pointer;
    }

.login-message {
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
}

    .login-message.success {
        color: #059669;
    }

.validation-summary-errors {
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-right: 18px;
    }
