:root {
    --bg-color: #1a202c;
    --card-bg: #ffffff;
    --primary-blue: #3b82f6;
    --text-dark: #1a202c;
    --text-gray: #718096;
    --input-bg: #f3f4f6;
    --btn-disabled: #cccccc;
    --btn-disabled-text: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.top-bar {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-actions {
    display: flex;
    gap: 15px;
}

.btn-open-account {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.btn-help {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Login Card Styles */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 480px;
    padding: 60px 50px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logo { margin-bottom: 40px; }
.logo img { height: 45px; }
h2 { color: var(--text-dark); font-size: 24px; margin-bottom: 35px; font-weight: 700; }

/* Floating Label Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.floating-label-group {
    position: relative;
    background-color: var(--input-bg);
    border-bottom: 2px solid var(--text-dark);
    text-align: left;
}

.floating-label-group input {
    width: 100%;
    padding: 25px 20px 10px 20px;
    background-color: transparent;
    border: none;
    border-radius: 0; /* Square design */
    font-size: 16px;
    outline: none;
    color: var(--text-dark);
}

.floating-label-group label {
    position: absolute;
    top: 18px;
    left: 20px;
    color: var(--text-gray);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Animation: Label goes up when focused or has content */
.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 11px;
    font-weight: 700;
}

.password-field {
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    z-index: 5;
}

/* Forgot Password Link */
.forgot-password-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 35px;
}

.forgot-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Button Styles */
.btn-continue {
    width: 100%;
    padding: 15px;
    background-color: var(--btn-disabled);
    color: var(--btn-disabled-text);
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: not-allowed;
    transition: all 0.3s;
}

.btn-continue.active {
    background-color: var(--primary-blue);
    color: #000000;
    cursor: pointer;
}

@media (max-width: 600px) {
    .top-bar { padding: 15px 20px; }
    .login-card { padding: 40px 25px; }
}

/* Loading Spinner Styles */
.loading-container {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Class to hide form elements */
.hidden {
    display: none !important;
}
