﻿/* Main Layout & Background */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/Idsrv.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #2a5298; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.login-wrapper {
    width: 100%;
}

.login-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #fff;
    overflow: visible;
    border-bottom: 10px solid #100f59;
}

/* Logo Area */
.login-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #101c2d 0%, #0a58ca 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Typography */
.login-heading {
    color: #1e3a8a; /* Dark Blue */
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-subheading {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Stepper Component */
.stepper-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.stepper-item .step-counter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

/* Active Step: Dark Blue */
.stepper-item.active .step-counter {
    background-color: #1e3a8a;
    color: #fff;
}

/* Completed Step: Green */
.stepper-item.completed .step-counter {
    background-color: #22c55e; /* Green */
    color: #fff;
}

.stepper-line {
    flex: 0 0 60px;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 10px;
}

.stepper-line.completed {
    background-color: #22c55e;
}

/* User Profile Banner - New */
.user-profile-banner {
    background-color: #2b4081; /* Dark Blue */
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: white;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    overflow: hidden;
}

.email-text {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.change-user-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.change-user-link:hover {
    color: white;
    text-decoration: underline;
}

/* Form Controls */
.form-label-fancy {
    font-weight: 700;
    color: #1e3a8a;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #fff;
    color: #374151;
    font-size: 1rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Password Eye Input */
.password-input-wrapper {
    position: relative;
}
.password-input-wrapper .form-control {
    padding-right: 40px;
}
.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-toggle:hover {
    color: #1e3a8a;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-login {
    background-color: #fbbf24; /* Yellow */
    border: none;
    color: #1f2937;
}
.btn-login:hover {
    background-color: #f59e0b;
    color: #000;
}

.btn-back {
    background-color: #1e3a8a; /* Dark Blue */
    color: white;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-back:hover {
    background-color: #172554;
    color: white;
}

/* Links */
a.text-primary {
    color: #3b82f6 !important;
}
a.text-primary:hover {
    text-decoration: underline !important;
}
