﻿body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f6f9;
    font-family: Arial;
}

.login-card {
    /* Was a fixed 350px, which overflowed anything narrower (e.g. a
       320-360px phone) once the missing-viewport-meta bug above is fixed
       and the page actually renders at real phone width instead of a
       shrunk-down 980px layout. max-width keeps the same 350px look on
       normal screens while letting it shrink to fit a narrow one. */
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
    margin: 20px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.logo img {
    width: 200px;
    margin-bottom: 10px;
}

h2 {
    margin-bottom: 20px;
}

/* INPUT WITH ICON */
.input-box {
    position: relative;
    margin: 15px 0;
}

    .input-box i {
        position: absolute;
        left: 10px;
        top: 12px;
        color: #555;
    }

    .input-box input {
        width: 100%;
        padding: 10px 10px 10px 35px;
        border: none;
        border-bottom: 1px solid #ccc;
        outline: none;
        box-sizing: border-box;
        /* iOS Safari auto-zooms the page on focus for any input whose
           font-size is under 16px, viewport meta tag or not. This input
           never set one, so it was inheriting whatever size cascaded down -
           pinning it at 16px stops the zoom-on-tap outright. */
        font-size: 16px;
    }

/* LINKS */
.links {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin: 10px 0;
}

/* BUTTON */
.login-btn {
    width: 100%;
    padding: 10px;
    background: #009688;
    color: white;
    border: none;
    border-radius: 25px;
    margin-top: 10px;
    cursor: pointer;
}

/* ERROR */
.error {
    color: red;
    margin-top: 10px;
}
