/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Form Container */
.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 5px;
}

.logo p {
    color: #666;
    font-size: 14px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
button,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

button,
.btn-primary {
    background: #667eea;
    color: #fff;
    width: 100%;
}

button:hover,
.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    background: #e2e8f0;
    color: #333;
}

.btn-secondary:hover {
    background: #d2d8e0;
}

.btn-success {
    background: #48bb78;
    color: #fff;
}

.btn-success:hover {
    background: #38a169;
}

.btn-danger {
    background: #f56565;
    color: #fff;
}

.btn-danger:hover {
    background: #e53e3e;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    background: #667eea;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
}

.btn-sm:hover {
    background: #5a67d8;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}

.alert-info {
    background: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

.text-center {
    text-align: center;
    margin-top: 15px;
}

.text-center a {
    color: #667eea;
    text-decoration: none;
}

.text-center a:hover {
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.draft {
    background: #e2e8f0;
    color: #4a5568;
}

.status-badge.submitted,
.status-badge.challan_generated,
.status-badge.challan_uploaded {
    background: #bee3f8;
    color: #2a4365;
}

.status-badge.under_review {
    background: #fefcbf;
    color: #975a16;
}

.status-badge.approved,
.status-badge.verified {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.rejected {
    background: #fed7d7;
    color: #9b2c2c;
}

.status-badge.pending {
    background: #fefcbf;
    color: #975a16;
}

.status-badge.paid {
    background: #bee3f8;
    color: #2a4365;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
}
/* Student authentication refresh */
.container {
    background:
        radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), transparent 32%),
        radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.24), transparent 30%),
        linear-gradient(135deg, #123c69 0%, #2563eb 46%, #0f766e 100%);
}

.form-container {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.26);
}

.logo h1,
.form-container h2 {
    color: #123c69;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 10px;
    border-color: #dbeafe;
    background: #fbfdff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

button,
.btn-primary {
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

button:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #0d9488);
    transform: translateY(-1px);
}

.btn-secondary,
.btn-success,
.btn-danger,
.btn-sm {
    border-radius: 10px;
}
.logo img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    border-radius: 16px;
}
