:root {
    --bg: #0a0a0a;
    --card: rgba(20, 20, 20, .75);
    --border: rgba(255, 255, 255, .08);
    --text: #ffffff;
    --muted: #aaaaaa;
    --accent: #f15b2a;
}

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

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top, #242424 0%, #121212 35%, #050505 100%);
}

/* Login Page Specific Background */
.login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(241, 91, 42, .15), transparent 30%),
                radial-gradient(circle at 80% 70%, rgba(241, 91, 42, .08), transparent 30%);
    pointer-events: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 25px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* Login Components */
.login-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    margin: 10vh auto;
}

.login-logo, .hero-logo {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.card {
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    text-decoration: none;
    color: white;
}

/* Dashboard Link Cards */
.grid .card {
    background: rgba(255, 255, 255, .04);
    padding: 35px;
    transition: .25s ease;
    
    /* Layout fix for side-by-side content */
    display: flex;
    align-items: center; /* Vertically centers the icon and text group */
    gap: 20px;           /* Puts a 20px space between the icon and the text */
    text-align: left;    /* Ensures text aligns nicely to the left */
}

.grid .card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, .08);
}

.icon {
    font-size: 48px;
    /* margin-bottom: 20px; */ /* REMOVE OR COMMENT THIS OUT */
    flex-shrink: 0;          /* Prevents the icon from squishing if text is long */
}

/* Forms & UI Elements */
input[type="password"] {
    width: 100%;
    padding: 16px;
    border: none;
    outline: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: white;
    font-size: 16px;
}

input[type="password"]:focus {
    box-shadow: 0 0 0 2px var(--accent);
}

button {
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: .25s ease;
}

button:hover {
    transform: translateY(-2px);
    background: #ff1d29;
}

.terms-check {
    display: block;
    margin-top: 18px;
    font-size: 13px;
    color: #999;
    text-align: left;
}

.terms-check a {
    color: #f15b2a;
    text-decoration: none;
}

.terms-check a:hover {
    text-decoration: underline;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    width: 700px;
    max-width: 95%;
    max-height: 80vh;
    overflow-y: auto;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.terms-content {
    color: #ccc;
    line-height: 1.8;
    text-align: left;
}

.terms-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.terms-content li {
    margin-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Errors & Footer */
.error {
    margin-bottom: 15px;
    color: #ff6b6b;
}

.footer {
    margin-top: 20px;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero p {
    color: #aaa;
    margin-top: 12px;
    font-size: 18px;
}

.logout {
    display: inline-block;
    text-decoration: none;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50px;
    padding: 12px 24px;
    transition: .25s ease;
}

.logout:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.card-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}
