/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: #0d6efd;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6c757d;
}

/* Floating Label Input Group */
.input-group-custom {
    position: relative;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.input-group-custom input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    background: transparent;
}

.input-group-custom label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 5px;
    color: #6c757d;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Floating Animation */
.input-group-custom input:focus+label,
.input-group-custom input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 0.8rem;
    color: #0d6efd;
    font-weight: 600;
}

.input-group-custom input:focus {
    border-color: #0d6efd;
}

/* Password Group with Toggle */
.password-wrapper {
    display: flex;
    margin-bottom: 1.5rem;
}

.password-wrapper .input-group-custom input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.toggle-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: none;
    padding: 0 15px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    color: #6c757d;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.toggle-btn:hover {
    background: #f8f9fa;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-primary:disabled {
    background-color: #a0c4ff;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-primary.loading .spinner {
    display: inline-block;
}

.btn-primary.loading .btn-text {
    opacity: 0.8;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer Links */
.auth-footer {
    text-align: center;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}