/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    color: #333;
    background: #f5e6d3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 20px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 12px;
}

.auth-logo {
    height: 40px;
    width: auto;
    margin-bottom: 10px;
    object-fit: contain;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.auth-subtitle {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert i {
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    margin-top: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.form-label i {
    font-size: 16px;
    color: #C5814B;
}

.required {
    color: #e74c3c;
}

.form-input {
    width: 100%;
    padding: 9px 11px;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
}

.form-input:focus {
    outline: none;
    border-color: #C5814B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 129, 75, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-hint {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #C5814B 0%, #a66a3d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 129, 75, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a66a3d 0%, #8d5a32 100%);
    box-shadow: 0 6px 20px rgba(197, 129, 75, 0.4);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 20px;
}

/* Footer */
.auth-footer {
    margin-top: 12px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.auth-footer p:last-child {
    margin-bottom: 0;
}

.auth-link {
    color: #C5814B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-link:hover {
    color: #a66a3d;
    text-decoration: underline;
}

.auth-link i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Input Number Spinner Hide */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Success Modal Popup */
.success-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.success-modal-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-modal-content {
    padding: 30px;
    text-align: center;
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconBounce 0.6s ease 0.2s;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.success-modal-icon i {
    font-size: 40px;
    color: #fff;
}

.success-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.success-modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.success-modal-button {
    background: linear-gradient(135deg, #C5814B 0%, #a66a3d 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 129, 75, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.success-modal-button:hover {
    background: linear-gradient(135deg, #a66a3d 0%, #8d5a32 100%);
    box-shadow: 0 6px 20px rgba(197, 129, 75, 0.4);
    transform: translateY(-2px);
}

.success-modal-button:active {
    transform: translateY(0);
}

.success-modal-button i {
    font-size: 18px;
}

@media (max-width: 480px) {
    .success-modal {
        max-width: 100%;
    }
    
    .success-modal-content {
        padding: 25px 20px;
    }
    
    .success-modal-icon {
        width: 70px;
        height: 70px;
    }
    
    .success-modal-icon i {
        font-size: 35px;
    }
    
    .success-modal-title {
        font-size: 20px;
    }
    
    .success-modal-message {
        font-size: 13px;
    }
}

