﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --green: #0b7905;
    --green-dark: #0c6e05;
    --pink: #f5027b;
    --muted: #5e5e5e;
    --border: #dcdcdc;
    --bg: #f5f5f5;
    --font-family-base: "Inter", "Segoe UI", Tahoma, sans-serif;
    --text-color: #242d3a;
}

/* Page layout */
body {
    font-family: var(--font-family-base);
    background: var(--bg);
    color: var(--text-color);
    line-height: 1.6
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

/* Center section */
.auth {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 24px;
}

.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-link:hover { opacity: 0.9; }

/* Logo */
.logo {
    height: 44px;
    margin-bottom: 28px
}

/* Card/form */
.card {
    width: 420px;
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Fields */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.field label {
    font-size: 14px;
    color: #222
}

.field input {
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    outline: none;
    padding: 0 14px;
    font-size: 14px;
}

.field input:focus {
    border-color: #bbb;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03)
}

/* Helpers */
.row {
    display: flex;
    align-items: center;
    gap: 10px
}

.between {
    justify-content: space-between
}

.link-muted {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}

.link-muted:hover {
    text-decoration: underline
}

/* Buttons */
.btn {
    height: 46px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--green-dark)
}

/* Sign up line */
.signup {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-top: 8px;
}

.link-accent {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
}

.link-accent:hover {
    text-decoration: underline
}

/* Footer (simple bar) */
.footer-bottom {
    background: #0f8c07;
    color: #ffffff;
    text-align: center;
    padding: 20px 16px;
    font-size: 14px;
    margin-top: auto;
}

/* Responsive tweaks */
@media (max-width:600px) {
    .auth {
        padding: 32px 16px 20px;
    }

    .card {
        width: 100%;
        max-width: 360px;
    }

    .row.between {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width:480px) {
    .logo {
        height: 40px;
        margin-bottom: 20px
    }

    .btn {
        height: 44px
    }
}


/* ==== SOCIAL LOGIN ==== */
.login-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

/* Base button style */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    color: white;
    width: 100%;
    transition: background 0.3s ease;
}

.btn-social img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    /* Ä‘á»•i icon thÃ nh mÃ u tráº¯ng */
}

/* Facebook button */
.btn-social.facebook {
    background-color: #1877f2;
}

.btn-social.facebook:hover {
    background-color: #145ecc;
}

/* Google button */
.btn-social.google {
    background-color: #db4437;
}

.btn-social.google:hover {
    background-color: #b83225;
}


.alert-success {
    background: #e6ffed;
    color: #0f5132;
    padding: 12px 16px;
    margin: 0 0 20px 0;
    border: 1px solid #badbcc;
    border-radius: 6px;
    text-align: center;
}

.alert-error {
    background: #ffe6e6;
    color: #842029;
    padding: 12px 16px;
    margin: 0 0 20px 0;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    text-align: center;
}

