/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container {
    margin-bottom: -28px;
}

.logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.brand-name {
    font-size: 36px;
    font-weight: 700;
    color: #960822;
    margin-bottom: 0px;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #a0a0a0;
}

/* Login Card Styles */
.login-card {
    background-color: #000000;
    border: 1px solid #960822;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(150, 8, 34, 0.6);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 28px;
    margin-top: 0;
    padding: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Group Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.form-input {
    background-color: #0d0d0d;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    width: 100%;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-input::placeholder {
    color: #aaaaaa;
    font-weight: 700;
}

.form-input:focus {
    outline: none;
    border-color: #960822;
    background-color: #0f0f0f;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
    pointer-events: auto;
}

.password-toggle:hover {
    color: #960822;
}

.password-toggle:focus {
    outline: none;
}

.password-toggle:active {
    transform: scale(0.95);
}

/* Form Options (Remember Me & Forgot Password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    background-color: #0d0d0d;
    border: 1px solid #3a3a3a;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #960822;
    border-color: #960822;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.forgot-password-link {
    font-size: 14px;
    font-weight: 700;
    color: #960822;
    text-decoration: underline;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #b80a2a;
}

/* Sign In Button */
.sign-in-button {
    background-color: #960822;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0;
    width: 100%;
}

.sign-in-button:hover {
    background-color: #b80a2a;
}

.sign-in-button:active {
    transform: scale(0.98);
}

.sign-in-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(150, 8, 34, 0.3);
}

.sign-in-button svg {
    flex-shrink: 0;
}

/* Register Section */
.register-section {
    text-align: center;
    margin-top: 0;
}

.register-text {
    font-size: 14px;
    font-weight: 700;
    color: #a0a0a0;
    margin-right: 4px;
}

.register-link {
    font-size: 14px;
    font-weight: 700;
    color: #960822;
    text-decoration: underline;
    transition: color 0.2s;
}

.register-link:hover {
    color: #b80a2a;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #000000;
    border: 1px solid #960822;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 25px rgba(150, 8, 34, 0.6);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a2a;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.close-button {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    padding: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-button:hover {
    background-color: #2a2a2a;
    border-color: #960822;
    color: #960822;
}

.close-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(150, 8, 34, 0.3);
}

.close-button svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-body .form-group {
    margin-bottom: 0;
}

.modal-body .sign-in-button {
    margin-top: 12px;
    margin-bottom: 0;
}

.modal-body #forgotPasswordStep1 .form-group,
.modal-body #forgotPasswordStep2 .form-group {
    margin-bottom: 16px;
}

.modal-body #forgotPasswordStep1 .sign-in-button,
.modal-body #forgotPasswordStep2 .sign-in-button {
    margin-top: 8px;
}

.modal-description {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.modal-message.success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.modal-message.error {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

/* Responsive Design */
@media (max-width: 600px) {
    .login-card {
        padding: 30px 24px;
    }

    .brand-name {
        font-size: 28px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }
}

