/* NexTick360 Identity Server Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #09090b; /* zinc-950 */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fafafa; /* zinc-100 */
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.card {
    background: rgba(24, 24, 27, 0.4); /* zinc-900/40 */
    border: 1px solid rgba(39, 39, 42, 0.6); /* zinc-800/60 */
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(8px);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 12px;
}

.logo p {
    color: #a1a1aa; /* zinc-400 */
    font-size: 14px;
    font-weight: 400;
}

h1, h2, h3 {
    color: #fafafa; /* zinc-100 */
    margin-bottom: 16px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fafafa; /* zinc-100 */
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background-color: #18181b; /* zinc-900 */
    border: 1px solid #3f3f46; /* zinc-700 */
    border-radius: 8px;
    font-size: 16px;
    color: #fafafa; /* zinc-100 */
    transition: all 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #10b981; /* emerald-500 */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #71717a; /* zinc-500 */
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #10b981; /* emerald-500 */
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    color: #fafafa;
    font-weight: 400;
}

.btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #10b981; /* emerald-500 */
    color: #09090b; /* zinc-950 */
}

.btn-primary:hover {
    background-color: #34d399; /* emerald-400 */
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(63, 63, 70, 0.3); /* zinc-700/30 */
    color: #fafafa;
    border: 1px solid #3f3f46; /* zinc-700 */
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: rgba(63, 63, 70, 0.5);
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1); /* red/10 */
    color: #fca5a5; /* red-300 */
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1); /* blue/10 */
    color: #93c5fd; /* blue-300 */
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1); /* emerald/10 */
    color: #6ee7b7; /* emerald-300 */
    border-color: rgba(16, 185, 129, 0.3);
}

.validation-summary-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.validation-summary-errors li {
    margin-bottom: 5px;
}

.text-danger {
    color: #fca5a5; /* red-300 */
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #3f3f46; /* zinc-700 */
}

.divider span {
    background: rgba(24, 24, 27, 0.4); /* matches card */
    padding: 0 12px;
    position: relative;
    color: #a1a1aa; /* zinc-400 */
    font-size: 14px;
}

.links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #3f3f46; /* zinc-700 */
}

.links a {
    color: #10b981; /* emerald-500 */
    text-decoration: none;
    font-size: 14px;
    margin: 0 12px;
    transition: color 0.2s;
}

.links a:hover {
    color: #34d399; /* emerald-400 */
    text-decoration: underline;
}

.external-providers {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.external-provider {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #3f3f46; /* zinc-700 */
    border-radius: 8px;
    background: rgba(24, 24, 27, 0.6); /* zinc-900/60 */
    color: #fafafa;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.external-provider:hover {
    background: rgba(39, 39, 42, 0.8); /* zinc-800/80 */
    border-color: #52525b; /* zinc-600 */
}

/* Success message styling */
.success-message {
    text-align: center;
}

.success-message h2 {
    color: #10b981; /* emerald-500 */
    margin-bottom: 12px;
}

.success-message p {
    color: #d4d4d8; /* zinc-300 */
    margin-bottom: 8px;
}

/* Error page styling */
.error-content {
    text-align: center;
}

.error-content h1 {
    color: #ef4444; /* red-500 */
    font-size: 48px;
    margin-bottom: 16px;
}

.error-content h2 {
    color: #fafafa;
    font-size: 24px;
    margin-bottom: 12px;
}

.error-content p {
    color: #a1a1aa; /* zinc-400 */
    margin-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .card {
        padding: 24px;
    }

    .logo img {
        max-width: 150px;
    }
}
