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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #313131;
    background-image: url('/static/images/back_cover.jpg');
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: end;
    justify-content: center;
    /* margin-top: 30px; */
    padding-top: 50px;
    scrollbar-width: none;
}

@media (max-width: 768px) {
  body {
    background-image: url('/static/images/back_cover_mobile.jpg');
    background-size: cover;
    /* margin-top: 30px; */
  }
}

.auth-container {
    background: #E7E8EC;
    border-radius: 47px 47px 0px 0px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 100%;
    padding: 50px 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    color: #1a202c;
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: #000000;
    font-size: 14px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-error {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
}

.alert-success {
    background: #f0fff4;
    border: 1px solid #68d391;
    color: #2f855a;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    color: #000000;
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label .required {
    color: #e53e3e;
}

.form-input {
    width: 100%;
    padding: 18px 14px;
    border: 1px solid #c7c7c7;
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(113, 113, 113, 0.1);
}

.form-input.error {
    border-color: #fc8181;
}

.input-hint {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 4px;
}

.forgot-password-wrapper {
    text-align: right;
    margin-top: 6px;
}

.forgot-password-link {
    font-size: 12px;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #000000;
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #ECBAF1;
    color: rgb(0, 0, 0);
    padding: 14px 14px;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: #d1a3d4;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    text-align: center;
    margin-top: 10px;
    color: #718096;
    font-size: 14px;
}

.auth-footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}