@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Dark theme variables matching tooplate-mini-finance.css */
:root {
    --white-color: #ffffff;
    --primary-color: #1a1a1a;
    --secondary-color: #2d2d2d;
    --section-bg-color: #242424;
    --primary-bg-color: #1a1a1a;
    --custom-btn-bg-color: #1a1a1a;
    --custom-btn-bg-hover-color: #2a2a2a;
    --heading-color: #ffffff;
    --dark-color: #ffffff;
    --p-color: #b0b0b0;
    --border-color: #404040;
    --link-hover-color: #4a4a4a;
    --border-radius-medium: 20px;
    --border-radius-small: 10px;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-image: url('https://i.imgur.com/K8lDBYU.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    z-index: -1;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

.card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius-medium);
    border: 1px solid #505050;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 100%;
    position: relative;
    overflow: hidden;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--heading-color);
    font-weight: var(--font-weight-bold);
    font-size: 32px;
}

.label-float input {
    width: 100%;
    padding: 12px 15px;
    display: inline-block;
    border: 1px solid var(--border-color);
    background-color: #2d2d2d;
    color: var(--heading-color);
    outline: none;
    min-width: 100%;
    font-size: 16px;
    transition: all .3s ease-out;
    border-radius: var(--border-radius-small);
    box-sizing: border-box;
}

.label-float {
    position: relative;
    margin-bottom: 25px;
}

.label-float input:focus {
    border-color: var(--link-hover-color);
    background-color: #404040;
    box-shadow: 0 0 0 0.2rem rgba(74, 74, 74, 0.25);
}

.label-float input::placeholder {
    color: var(--p-color);
    opacity: 0.7;
}

.label-float label {
    color: var(--p-color);
    pointer-events: none;
    position: absolute;
    top: -8px;
    left: 10px;
    background: var(--secondary-color);
    padding: 0 5px;
    font-size: 12px;
    font-weight: var(--font-weight-normal);
}

.label-float input:focus+label {
    color: var(--heading-color);
}

button {
    background: var(--custom-btn-bg-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    color: var(--white-color);
    padding: 12px 24px;
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    margin-top: 20px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

button:hover {
    background: var(--custom-btn-bg-hover-color);
    color: var(--white-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

.justify-center {
    display: flex;
    justify-content: center;
}

hr {
    margin: 30px 0;
    border: none;
    height: 1px;
    background: var(--border-color);
    width: 100%;
}

p {
    color: var(--p-color);
    font-size: 14px;
    text-align: center;
    margin: 10px 0;
}

a {
    color: var(--heading-color);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: all .3s ease-out;
}

a:hover {
    color: var(--link-hover-color);
}

/* Checkbox styles */
.checkbox-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--p-color);
    font-size: 14px;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    background-color: transparent;
}

.checkbox-label:hover .checkmark {
    border-color: var(--link-hover-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background-color: var(--custom-btn-bg-color);
    border-color: var(--custom-btn-bg-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--white-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Additional dark theme enhancements */
.card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a, #1a1a1a);
    border-radius: var(--border-radius-medium);
    z-index: -1;
    opacity: 0.3;
}

/* Form validation styles */
.label-float input:valid {
    border-color: #a2a3a2;
}

.label-float input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Loading state for button */
button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

/* Focus trap for accessibility */
.card:focus-within {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--border-color);
}