﻿/* ========================================
   Register Page Styles (Dark Default)
   ======================================== */

:root {
    --auth-bg-start: #0b1120;
    --auth-bg-end: #050816;
    --auth-accent-start: #1d4ed8;
    --auth-accent-end: #7c3aed;
    --auth-card-bg: rgba(15, 23, 42, 0.92);
    --auth-card-border: #1e2a45;
    --auth-input-bg: #0f172a;
    --auth-input-border: #24314f;
    --auth-text-primary: #e2e8f0;
    --auth-text-muted: #94a3b8;
    --auth-highlight: #38bdf8;
}

body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #111c44, var(--auth-bg-start) 55%, var(--auth-bg-end));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-text-primary);
}

.register-container {
    width: 100%;
    max-width: 540px;
    padding: 0 10px;
}

.register-container.register-container-wide {
    max-width: 760px;
}

/* Register Card */
.register-card {
    background: var(--auth-card-bg);
    border-radius: 22px;
    border: 1px solid var(--auth-card-border);
    box-shadow: 0 35px 80px rgba(2, 6, 23, 0.65);
    overflow: hidden;
    animation: slideUp 0.5s ease;
    backdrop-filter: blur(6px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.register-header {
    background: linear-gradient(130deg, var(--auth-accent-start), var(--auth-accent-end));
    padding: 40px 25px;
    text-align: center;
    color: #f8fafc;
}

.register-header i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.register-header h2 {
    margin: 0 0 6px;
    font-size: 2rem;
    font-weight: 700;
}

.register-header p {
    margin: 0;
    opacity: 0.9;
}

/* Body Section */
.register-body {
    padding: 40px;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--auth-text-primary);
    margin-bottom: 8px;
    display: block;
}

.form-label i {
    margin-right: 5px;
    color: var(--auth-highlight);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--auth-input-border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
    background: var(--auth-input-bg);
    color: var(--auth-text-primary);
}

.form-control:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.15rem rgba(96, 165, 250, 0.35);
    background: #0b1629;
}

.form-control::placeholder {
    color: var(--auth-text-muted);
}

/* Password Wrapper with Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--auth-highlight);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #a855f7;
}

/* Register Button */
.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 30px rgba(99, 102, 241, 0.35);
}

.btn-register:hover {
    transform: translateY(-2px);
}

.btn-register:active {
    transform: translateY(0);
}

.btn-register i {
    margin-right: 8px;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.login-link a {
    color: var(--auth-highlight);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.login-link a:hover {
    color: #a855f7;
    text-decoration: underline;
}

.login-link i {
    margin-right: 5px;
}

/* Password Requirements Card */
.password-requirements {
    background: rgba(15, 23, 42, 0.82);
    border-radius: 18px;
    padding: 22px;
    margin-top: 20px;
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.password-requirements h6 {
    color: var(--auth-text-primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.password-requirements h6 i {
    color: var(--auth-highlight);
    margin-right: 8px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 8px 0;
    color: var(--auth-text-muted);
    font-size: 0.95rem;
}

.password-requirements li::before {
    content: "✓";
    color: #34d399;
    font-weight: bold;
    margin-right: 10px;
}

/* Feature Highlights */
.feature-highlights {
    text-align: center;
    margin-top: 20px;
    color: var(--auth-text-muted);
}

.feature-highlights p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.95;
}

.feature-highlights i {
    margin: 0 5px;
    color: var(--auth-highlight);
}

/* Validation Messages */
.text-danger {
    color: #fca5a5;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

.alert-danger {
    background-color: rgba(127, 29, 29, 0.55);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 576px) {
    body {
        padding: 10px;
    }

    .register-body {
        padding: 30px 22px;
    }

    .register-header h2 {
        font-size: 1.6rem;
    }

    .password-requirements {
        padding: 18px;
    }
}
