/* Shared public login / auth form card */

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    padding: 32px 28px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #667eea);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

/* Compact form title — icon left, short description */
.public-form-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-align: left;
}

.public-form-head-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    font-size: 0.9rem;
}

.public-form-head-text {
    min-width: 0;
    flex: 1;
}

.public-form-head-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3c72;
    line-height: 1.25;
}

.public-form-head-desc {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.3;
}

.public-ur-logo {
    height: 72px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-header h2 {
    color: #1e3c72;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.login-header p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.45;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.12);
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 38px;
    color: #adb5bd;
    font-size: 0.9rem;
    pointer-events: none;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: linear-gradient(180deg, #2a5298, #1e3c72);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 60, 114, 0.28);
    color: #fff;
}

.btn-success {
    background: linear-gradient(180deg, #2f9e44, #22863a);
    color: #fff;
    width: 100%;
}

.link-btn {
    background: none;
    border: none;
    color: #1e3c72;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
    font-size: 0.88rem;
}

.link-btn:hover {
    color: #2a5298;
    text-decoration: underline;
}

.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    border: none;
    font-size: 0.88rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.08);
    color: #c82333;
    border-left: 3px solid #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.08);
    color: #1e7e34;
    border-left: 3px solid #28a745;
}

.step-section {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #fafbfc;
    display: none;
}

.step-section.active {
    display: block;
    border-color: #1e3c72;
    background: #fff;
}

.step-section h5 {
    color: #1e3c72;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .main-container {
        padding: 110px 12px 24px;
    }

    .login-container {
        padding: 24px 18px;
    }

    .public-form-head {
        margin-bottom: 14px;
        gap: 10px;
    }

    .public-form-head-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .public-form-head-title {
        font-size: 1.05rem;
    }

    .public-ur-logo {
        height: 60px;
    }
}
