/* ============================================
   Recycling Buy Back Centre - Stylesheet
   ============================================ */

:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* ============================================
   LOGIN CONTAINER
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 40px);
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-header h1 i {
    margin-right: 10px;
    font-size: 32px;
}

.login-header p {
    color: var(--secondary-color);
    font-size: 14px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert i {
    font-size: 18px;
}

.alert-error {
    background-color: #fee;
    border-left: 4px solid var(--danger-color);
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border-left: 4px solid var(--success-color);
    color: #3c3;
}

/* ============================================
   FORMS
   ============================================ */

.login-form {
    margin-top: 20px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
}

label i {
    margin-right: 6px;
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

small {
    display: block;
    margin-top: 5px;
    color: var(--secondary-color);
    font-size: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #20c997 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}

.btn-block {
    width: 100%;
}

.btn i {
    margin-right: 8px;
}

/* ============================================
   FOOTER & LINKS
   ============================================ */

.login-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    margin: 8px 0;
    color: var(--secondary-color);
    font-size: 14px;
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #218838;
    text-decoration: underline;
}

.login-info {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
}

.login-info small {
    color: var(--secondary-color);
}

.login-info i {
    color: var(--info-color);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .login-box {
        padding: 25px;
        border-radius: 10px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 20px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--secondary-color);
}

.mt-10 {
    margin-top: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* ============================================
   REGISTER PAGE SPECIFIC
   ============================================ */

.register-form .form-group {
    margin-bottom: 18px;
}

.register-form .form-row {
    gap: 15px;
}

/* Success message */
.register-success {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.register-success h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

/* ============================================
   PRINTS (For future use)
   ============================================ */

@media print {
    body {
        background: white;
    }
    
    .no-print {
        display: none;
    }
}

