/* Reset some basic elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    height: 100vh;
    background: linear-gradient(to right, #2c3e50, #34495e);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container */
.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* Login Box */
.login-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Form */
.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #34495e;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #2980b9;
}

/* Password wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.password-wrapper i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
}

/* Error */
.error {
    color: red;
    font-size: 13px;
    margin-top: 5px;
}

/* Button */
.btn {
    width: 100%;
    padding: 10px;
    background: #2980b9;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #1c5980;
}

/* Register link */
.register-link {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-link a {
    color: #2980b9;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.go-back {
    text-align: center;
    margin-top: 10px;
}

.go-back a {
    color: #2c3e50;
    font-size: 14px;
    text-decoration: none;
}

.go-back a:hover {
    text-decoration: underline;
    color: #1d3557;
}


/* Responsive */
@media (max-width: 500px) {
    .login-box {
        padding: 20px;
    }
}
