/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    /* Keeping your original background settings */
    background: url("wallpaper/wallpaper.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* Container */
.main-container {
    width: 100%;
    max-width: 800px;
    padding: 15px;
}

/* Glassmorphism Card Design */
.card {
    background: rgba(30, 30, 30, 0.85); /* Dark transparent background */
    backdrop-filter: blur(10px); /* Blur effect behind the card */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography */
.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header p {
    color: #b0b3b8;
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #d1d1d1;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: #3a3b3c;
    border: 1px solid #4e4f50;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: #4e4f50;
    border-color: #DC143C; /* Crimson accent */
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
}

.form-control.is-invalid {
    border-color: #ff4d4d;
}

/* Error Messages */
.error-text {
    display: block;
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #ff8b94;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #85e097;
}

/* Buttons */
.form-actions {
    margin-top: 30px;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.btn-primary {
    background: #DC143C; /* Crimson */
    color: white;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: #b90e30;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Footer Links */
.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #b0b3b8;
}

.form-footer a {
    color: #DC143C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #ff4d6d;
    text-decoration: underline;
}

/* --- Additions for Welcome Page --- */

/* Utility for alignment */
.text-center {
    text-align: center;
}

/* Spacing Utilities */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* Links inside text */
.text-link {
    color: #DC143C;
    text-decoration: none;
    font-weight: 500;
}
.text-link:hover {
    text-decoration: underline;
    color: #ff4d6d;
}

/* The Realmlist Code Box */
.code-box {
    background: #111;
    border: 1px solid #333;
    color: #00ff9d; /* Matrix/Terminal Green */
    font-family: 'Fira Code', 'Courier New', monospace;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    word-break: break-all;
    user-select: all; /* Makes it easy to select the whole text with one click */
}

code {
    background: rgba(255,255,255,0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

/* Horizontal Divider */
.divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 25px 0;
    width: 100%;
}

/* Disclaimer Text */
.disclaimer {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    margin-top: 15px;
}

/* Outline Button (for Logout) */
.btn-outline {
    display: inline-block;
    width: 100%;
    padding: 10px;
    border: 1px solid #6c757d;
    background: transparent;
    color: #b0b3b8;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.card-footer {
    margin-top: 20px;
}