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

body {

    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    background: linear-gradient(135deg, #0D4D6B 0%, #00758F 55%, #0091AD 100%);

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}

.container {

    background: white;

    border-radius: 18px;

    box-shadow: 0 24px 64px rgba(13, 77, 107, 0.35);

    width: 100%;

    max-width: 440px;

    overflow: hidden;

}

.header {

    background: linear-gradient(135deg, #0D4D6B 0%, #00758F 45%, #0091AD 100%);

    color: white;

    padding: 32px 30px 28px;

    text-align: center;

    position: relative;

}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #0D4D6B, #00758F, #00B4CC, #7AB648);
}

.header img {

    height: 60px;

    margin-bottom: 15px;

}

.header h1 {

    font-size: 1.5rem;

    margin-bottom: 5px;

}

.header p {

    opacity: 0.9;

    font-size: 0.95rem;

}

.content {

    padding: 30px;

}

.form-group {

    margin-bottom: 20px;

}

.form-label {

    display: block;

    margin-bottom: 8px;

    color: #374151;

    font-weight: 500;

}

.form-input,
.form-select {

    width: 100%;

    padding: 12px 15px;

    border: 2px solid #e5e7eb;

    border-radius: 8px;

    font-size: 1rem;

    transition: all 0.3s;

}

.form-input:focus,
.form-select:focus {

    outline: none;

    border-color: #0D4D6B;

    box-shadow: 0 0 0 3px rgba(0, 63, 127, 0.1);

}

.btn {

    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 8px;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s;

}

.btn-primary {

    background: linear-gradient(135deg, #00758F 0%, #0D4D6B 100%);

    color: white;

}

.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 5px 20px rgba(0, 63, 127, 0.4);

}

.btn-primary:disabled {

    opacity: 0.6;

    cursor: not-allowed;

    transform: none;

}

.btn-secondary {

    background: #f3f4f6;

    color: #374151;

    margin-top: 10px;

}

.btn-secondary:hover {

    background: #e5e7eb;

}

.btn-link {

    background: none;

    border: none;

    color: #0D4D6B;

    cursor: pointer;

    font-size: 0.9rem;

    padding: 0;

    text-decoration: underline;

}

.btn-link:hover {

    color: #00758F;

}

.message {

    padding: 15px;

    border-radius: 8px;

    margin-bottom: 20px;

    display: none;

}

.message.active {

    display: block;

}

.message.success {

    background: #d1fae5;

    color: #065f46;

    border: 1px solid #10b981;

}

.message.error {

    background: #fee2e2;

    color: #991b1b;

    border: 1px solid #ef4444;

}

.message.info {

    background: #dbeafe;

    color: #1e40af;

    border: 1px solid #3b82f6;

}

.message.warning {

    background: #fef3c7;

    color: #92400e;

    border: 1px solid #f59e0b;

}

.spinner {

    display: inline-block;

    width: 20px;

    height: 20px;

    border: 2px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;

    border-top-color: white;

    animation: spin 1s linear infinite;

    margin-right: 10px;

    vertical-align: middle;

}

@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}

.divider {

    display: flex;

    align-items: center;

    margin: 20px 0;

    color: #9ca3af;

    font-size: 0.875rem;

}

.divider::before,
.divider::after {

    content: '';

    flex: 1;

    height: 1px;

    background: #e5e7eb;

}

.divider span {

    padding: 0 15px;

}

.back-link {

    display: block;

    text-align: center;

    color: #0D4D6B;

    text-decoration: none;

    margin-top: 15px;

    font-size: 0.9rem;

}

.back-link:hover {

    text-decoration: underline;

}

/* Modal styles */

.modal {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    align-items: center;

    justify-content: center;

    z-index: 1000;

}

.modal.active {

    display: flex;

}

.modal-content {

    background: white;

    border-radius: 15px;

    width: 90%;

    max-width: 400px;

    padding: 30px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    animation: slideUp 0.3s ease;

}

@keyframes slideUp {

    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}

.modal-header {

    text-align: center;

    margin-bottom: 20px;

}

.modal-header h2 {

    color: #333;

    font-size: 1.3rem;

}

.modal-header p {

    color: #6b7280;

    font-size: 0.9rem;

    margin-top: 5px;

}

.password-requirements {

    background: #f9fafb;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 15px;

    font-size: 0.85rem;

    color: #6b7280;

}

.password-requirements ul {

    margin: 8px 0 0 20px;

}

.password-requirements li.valid {

    color: #10b981;

}

/* Azure AD Button Styles */

.btn-azure {

    background: linear-gradient(135deg, #00758F 0%, #0D4D6B 100%);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 14px 20px;

    border: none;

    border-radius: 8px;

    font-size: 1rem;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s;

    text-decoration: none;

    width: 100%;

    margin-bottom: 15px;

}

.btn-azure:hover {

    background: linear-gradient(135deg, #0D4D6B 0%, #005a9e 100%);

    transform: translateY(-2px);

    box-shadow: 0 5px 20px rgba(0, 120, 212, 0.4);

}

.btn-azure svg {

    width: 20px;

    height: 20px;

    fill: currentColor;

}

.login-method-badge {

    display: inline-block;

    background: #dbeafe;

    color: #1e40af;

    font-size: 0.75rem;

    padding: 2px 8px;

    border-radius: 10px;

    margin-left: 8px;

}