/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background-color: #43a047;
    color: white;
    text-align: center;
    padding: 25px 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2rem;
}

.header p {
    font-size: 1.1rem;
}

/* Layout */
.main-content {
    max-width: 1100px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* Card Style */
.card {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Card Title */
.card h2 {
    color: #388e3c;
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Info Message */
.info-message,
.success-message,
.error-message {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    text-align: center;
}

.info-message {
    background-color: #e3f2fd;
    color: #0288d1;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: 15px;
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-group-full-width {
        grid-column: span 2;
    }
}

/* Input Fields */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #43a047;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.2);
    outline: none;
}

/* Buttons */
.btn-primary {
    background-color: #5e35b1;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background-color: #4527a0;
    transform: translateY(-2px);
}

.btn-text-link {
    background: none;
    border: none;
    color: #1976d2;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: left;
    padding-left: 0;
}

.btn-text-link:hover {
    color: #0d47a1;
}

.btn-secondary {
    background-color: #ef5350;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background-color: #d32f2f;
}

/* Footer */
.footer {
    background-color: #424242;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer a {
    color: #ffd600;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
