* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://uraansoftskills.com/SkillVerse/images/index-portfolio2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    min-height: 100vh;
}

.hero-text {
    color: white;
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    max-width: 380px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.login-card {
    width: 430px;
    min-height: 560px;
    background: white;
    border-radius: 20px;
    margin: 40px 60px 40px 0;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 18px;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    width: 100%;
}

.login-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}

.login-input {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    outline: none;
    transition: border-color 0.2s;
}

.login-input:focus {
    border-color: #1a6fd4;
}

.login-error {
    color: red;
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.login-btn {
    width: 100%;
    padding: 13px;
    background-color: #1a6fd4;
    color: white;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
    letter-spacing: 0.3px;
}

.login-btn:hover {
    background-color: #1558b0;
}

.login-btn:disabled {
    background-color: #5a9fd4;
    cursor: not-allowed;
    opacity: 0.85;
}

.login-hint {
    font-size: 13px;
    color: #888;
    margin-top: 16px;
    text-align: center;
}

/* ─── Button loader ─────────────────────────────────────────────────────────── */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btn-spin 0.65s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
    flex-shrink: 0;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ─── Toast ─────────────────────────────────────────────────────────────────── */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff4d4d;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: Arial, sans-serif;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
}

.toast-show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 20px;
    }
    .hero-section {
        min-height: auto;
        padding: 40px 20px 24px;
    }
    .hero-text {
        font-size: 1.9rem;
        max-width: 320px;
    }
    .login-card {
        width: 100%;
        max-width: 400px;
        margin: 0;
        padding: 36px 28px;
        border-radius: 16px;
        min-height: auto;
    }
}
