/**
 * ------------------------------------------------------------
 * File: assets/css/style.css
 * Purpose: Main stylesheet for SVSS Admission Portal
 * Project: SVSS Admission Portal
 * ------------------------------------------------------------
 */

/* =========================
   Reset / Base Styles
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   Header
========================= */
.site-header {
    background: linear-gradient(135deg, #0d6efd, #1a237e);
    color: #fff;
    padding: 18px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.site-brand-text h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.site-brand-text p {
    margin: 2px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* =========================
   Main Layout
========================= */
.site-main {
    min-height: calc(100vh - 160px);
    padding: 30px 15px;
}

.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.page-title {
    text-align: center;
    font-size: 28px;
    color: #1a237e;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 15px;
}

/* =========================
   Form Styles
========================= */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #222;
    font-size: 14px;
}

.required {
    color: #dc3545;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

/* =========================
   Row Layout for OTP / Phone
========================= */
.phone-row,
.otp-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.phone-row input,
.otp-row input {
    flex: 1;
}

/* =========================
   Buttons
========================= */
.btn {
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: #0d6efd;
    color: #fff;
}

.btn-success {
    background: #198754;
    color: #fff;
}

.btn-warning {
    background: #ff9800;
    color: #fff;
}

.btn-submit {
    width: 100%;
    background: #1a73e8;
    color: #fff;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
}

/* =========================
   Message / Alert Box
========================= */
.message-box {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
}

.message-success {
    background: #e7f7ec;
    color: #146c2e;
    border: 1px solid #b7e4c7;
}

.message-error {
    background: #fdeaea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}

.otp-status {
    margin-top: 8px;
    font-size: 14px;
    color: #198754;
    display: none;
    font-weight: 600;
}

/* =========================
   Footer
========================= */
.site-footer {
    background: #1a237e;
    color: #fff;
    padding: 18px 0;
    margin-top: 30px;
}

.footer-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-container p {
    margin: 4px 0;
    font-size: 14px;
}

/* =========================
   Utility Classes
========================= */
.text-center {
    text-align: center;
}

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

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

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

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

/* =========================
   Responsive Styles
========================= */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .site-brand {
        flex-direction: column;
    }

    .container {
        padding: 22px;
    }

    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .site-main {
        padding: 20px 10px;
    }

    .container {
        padding: 18px;
        border-radius: 10px;
    }

    .phone-row,
    .otp-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        min-width: 100%;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 14px;
        padding: 11px 12px;
    }
}