﻿.ibsn-body {
    background: #1e1e1e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    padding: 1.5rem;
}

/* ---------- main card: dark grey theme ---------- */
.ibsn-login-card {
    background: #2b2b2b;
    border-radius: 2.5rem;
    padding: 2.8rem 2.5rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8), 0 8px 24px -6px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    border: 1px solid #3d3d3d;
    box-sizing: border-box;
}

    .ibsn-login-card:hover {
        box-shadow: 0 28px 48px -16px rgba(0, 0, 0, 0.9);
    }

/* ---------- brand / header ---------- */
.ibsn-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
}

.ibsn-brand-logo-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ibsn-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px;
}

.ibsn-brand-text {
    color: #eaeaea;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

    .ibsn-brand-text span {
        color: #a0a0a0;
        font-weight: 300;
    }

/* ---------- welcome ---------- */
.ibsn-welcome {
    margin-bottom: 2.2rem;
}

    .ibsn-welcome h2 {
        color: #f0f0f0;
        font-size: 1.9rem;
        font-weight: 600;
        letter-spacing: -0.5px;
        margin-bottom: 0.4rem;
    }

    .ibsn-welcome p {
        color: #9b9b9b;
        font-size: 0.95rem;
        font-weight: 400;
    }

/* ---------- form fields ---------- */
.ibsn-field {
    margin-bottom: 1.6rem;
    width: 100%;
}

    .ibsn-field label {
        display: block;
        color: #c6c6c6;
        font-size: 0.85rem;
        font-weight: 500;
        letter-spacing: 0.3px;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        opacity: 0.7;
    }

.ibsn-input {
    width: 100%;
    max-width: 100%;
    background: #1f1f1f;
    border: 1px solid #3d3d3d;
    border-radius: 1.8rem;
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
    color: #ececec;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
    font-weight: 400;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    display: block;
}

    .ibsn-input:focus {
        border-color: #6b6b6b;
        background: #252525;
        box-shadow: 0 0 0 3px rgba(120, 120, 120, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.6);
    }

    .ibsn-input::placeholder {
        color: #6a6a6a;
        font-weight: 300;
        font-size: 0.95rem;
    }

    /* ---------- validation styles ---------- */
    .ibsn-input.ibsn-invalid {
        border-color: #e74c3c;
        background: #2a1a1a;
    }

        .ibsn-input.ibsn-invalid:focus {
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.6);
        }

    .ibsn-input.ibsn-valid {
        border-color: #2ecc71;
        background: #1a2a1a;
    }

        .ibsn-input.ibsn-valid:focus {
            border-color: #2ecc71;
            box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.6);
        }

.ibsn-error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    padding-left: 0.5rem;
    display: none;
}

    .ibsn-error-message.ibsn-visible {
        display: block;
    }

.ibsn-hint {
    color: #7a7a7a;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    padding-left: 0.5rem;
    font-style: italic;
}

/* ---------- forgot password button ---------- */
.ibsn-forgot-container {
    display: flex;
    justify-content: flex-end;
    margin: -0.5rem 0 1.8rem 0;
}

.ibsn-forgot-btn {
    background: transparent;
    border: none;
    color: #a0a0a0;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
    font-family: inherit;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 1px dotted #4a4a4a;
}

    .ibsn-forgot-btn:hover {
        color: #d0d0d0;
        background: rgba(255, 255, 255, 0.04);
        border-bottom-color: #777;
    }

    .ibsn-forgot-btn:active {
        transform: scale(0.97);
    }

/* ---------- primary button ---------- */
.ibsn-btn-primary {
    width: 100%;
    background: #3e3e3e;
    border: none;
    border-radius: 3rem;
    padding: 1rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f2f2f2;
    cursor: pointer;
    transition: background 0.25s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
    border: 1px solid #4d4d4d;
    margin-bottom: 1.8rem;
    box-sizing: border-box;
}

    .ibsn-btn-primary:hover {
        background: #4d4d4d;
        box-shadow: 0 10px 20px -8px #0a0a0a;
    }

    .ibsn-btn-primary:active {
        transform: scale(0.97);
        background: #3a3a3a;
    }

    .ibsn-btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ---------- signup footer ---------- */
.ibsn-signup {
    text-align: center;
    color: #8a8a8a;
    font-size: 0.95rem;
    border-top: 1px solid #393939;
    padding-top: 1.6rem;
    margin-top: 0.4rem;
}

    .ibsn-signup a {
        color: #cfcfcf;
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid #545454;
        padding-bottom: 1px;
        transition: color 0.2s, border-color 0.2s;
        cursor: pointer;
    }

        .ibsn-signup a:hover {
            color: #ffffff;
            border-color: #9a9a9a;
        }

/* ---------- responsive ---------- */
@media (max-width: 480px) {
    .ibsn-login-card {
        padding: 2rem 1.5rem;
        border-radius: 2rem;
    }

    .ibsn-brand-text {
        font-size: 1.4rem;
    }

    .ibsn-brand-logo-wrapper {
        width: 42px;
        height: 42px;
    }

    .ibsn-welcome h2 {
        font-size: 1.6rem;
    }

    .ibsn-forgot-container {
        margin: -0.5rem 0 1.5rem 0;
    }

    .ibsn-btn-primary {
        font-size: 1rem;
        padding: 0.9rem;
    }
}

@media (max-width: 380px) {
    .ibsn-login-card {
        padding: 1.6rem 1.2rem;
    }

    .ibsn-input {
        padding: 0.8rem 1.2rem;
    }
}

/* ---------- enter key handler style ---------- */
.ibsn-login-container {
    width: 100%;
}
