/* MailNuts Identity Portal Styles */

:root {
    --mailnuts-primary: #667eea;
    --mailnuts-secondary: #764ba2;
    --mailnuts-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Override Bootstrap primary color */
.bg-primary {
    background: var(--mailnuts-gradient) !important;
}

.btn-primary {
    background: var(--mailnuts-gradient);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd1 0%, #6a4292 100%);
}

/* Auth card styling */
.auth-card {
    max-width: 450px;
    margin: 2rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.auth-card .card-header {
    background: var(--mailnuts-gradient);
    color: white;
    text-align: center;
    padding: 1.5rem;
    border-bottom: none;
}

.auth-card .card-header h1,
.auth-card .card-header h2 {
    margin-bottom: 0;
    font-weight: 600;
}

.auth-card .card-body {
    padding: 2rem;
}

/* External login buttons */
.external-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.external-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.btn-google:hover {
    background-color: #f5f5f5;
    color: #333;
}

.btn-microsoft {
    background-color: #2f2f2f;
    color: white;
}

.btn-microsoft:hover {
    background-color: #1a1a1a;
    color: white;
}

.btn-github {
    background-color: #24292e;
    color: white;
}

.btn-github:hover {
    background-color: #1a1d21;
    color: white;
}

.btn-gitlab {
    background-color: #fc6d26;
    color: white;
}

.btn-gitlab:hover {
    background-color: #e55f1d;
    color: white;
}

.btn-bitbucket {
    background-color: #0052cc;
    color: white;
}

.btn-bitbucket:hover {
    background-color: #0047b3;
    color: white;
}

/* Divider with text */
.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider-text span {
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Form styling */
.form-floating label {
    color: #6c757d;
}

.form-control:focus {
    border-color: var(--mailnuts-primary);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Verification code input */
.verification-code-input {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: monospace;
}

/* Alert styling */
.alert {
    border-radius: 8px;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background-color: #dc3545;
    width: 33%;
}

.password-strength.medium {
    background-color: #ffc107;
    width: 66%;
}

.password-strength.strong {
    background-color: #28a745;
    width: 100%;
}

/* Consent page */
.scope-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.scope-item:last-child {
    border-bottom: none;
}

.scope-icon {
    font-size: 1.5rem;
    color: var(--mailnuts-primary);
}
