/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Global */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #0f172a; /* dark blue/green background */
    color: #ffffff;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */
    flex-direction: column; /* stack content vertically */
    min-height: 100vh;
    padding: 20px;
    text-align: center; /* center all text by default */
}

/* Wrapper & Card */
.wrap {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    flex-direction: column; /* vertical layout */
    align-items: center; /* center horizontally */
    gap: 20px; /* spacing between elements */
}

.card {
    width: 100%;
    background: #111827; /* dark card */
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column; /* stack inner content vertically */
    align-items: center; /* center content horizontally */
    gap: 15px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,.5);
}

/* Logo */
.logo {
    width: 80px;
    margin-bottom: 20px;
}

/* Titles */
h1, h2 {
    margin: 0 0 12px;
    color: #fff;
}
p {
    color: #94a3b8;
}

/* Input & Forms */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #0b1220;
    color: #fff;
    font-size: 15px;
    text-align: center; /* center input text */
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 5px rgba(34,197,94,0.5);
}

/* Buttons */
button {
    width: 100%;
    border: none;
    background: #22c55e;
    color: #06110a;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    text-align: center;
}
button:hover {
    background: #16a34a;
}

/* Links */
a {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
}
a:hover {
    text-decoration: underline;
}

/* Error / Messages */
.msg, .error {
    color: #f87171;
    font-size: 14px;
    margin-top: 5px;
    text-align: center; /* center messages */
}

/* Admission Link */
.admission-link {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* Force vertical stacking on all elements */
* {
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 500px) {
    .wrap {
        padding: 15px;
    }
    input, select, button {
        font-size: 14px;
        padding: 10px;
    }
}
