/* Login Page Styles - Center & Beautify */

body.login {
    background: linear-gradient(135deg, #FFF0F5 0%, #FCE4EC 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Nunito', sans-serif;
    margin: 0 !important;
    padding: 20px !important;
}

#login {
    width: 100%;
    max-width: 450px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    order: 1;
}

.login #login {
    background-color: white;
    border-radius: 15px;
    border: 2px solid #F8BBD9;
    box-shadow: 0 15px 40px rgba(244, 143, 177, 0.2);
    padding: 40px 35px;
    width: 100%;
}

.login #loginform {
    margin-bottom: 0;
}

.login h1 {
    text-align: center;
    margin-bottom: 30px !important;
}

.login h1 a {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: center;
    justify-content: center;
    background: none !important;
    color: transparent !important;
    text-indent: 0 !important;
    overflow: visible !important;
    text-decoration: none;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.login h1 a::before {
    content: "MaiPhuong.Kim";
    color: #E91E8C;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

.login h1 a:hover {
    opacity: 0.8;
}

.login #loginform p {
    margin-bottom: 15px;
}

.login #loginform label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-family: 'Nunito', sans-serif;
}

.login #loginform input[type="text"],
.login #loginform input[type="password"],
.login #loginform input[type="email"] {
    background: #FFF0F5 !important;
    border: 2px solid #F8BBD9 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-family: 'Nunito', sans-serif !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.login #loginform input[type="text"]:focus,
.login #loginform input[type="password"]:focus,
.login #loginform input[type="email"]:focus {
    background: white !important;
    border-color: #F48FB1 !important;
    box-shadow: 0 0 10px rgba(244, 143, 177, 0.3) !important;
    outline: none !important;
}

.login .button.button-primary {
    background: linear-gradient(135deg, #F48FB1, #E91E8C) !important;
    border: none !important;
    color: white !important;
    width: 100%;
    padding: 12px 15px !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(233, 30, 140, 0.2);
    font-family: 'Nunito', sans-serif !important;
}

.login .button.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 30, 140, 0.3) !important;
}

.login .button.button-primary:active {
    transform: translateY(0);
}

/* Checkbox styling */
.login input[type="checkbox"] {
    margin-right: 8px;
}

/* Links styling */
.login a {
    color: #E91E8C !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.login a:hover {
    color: #F48FB1 !important;
    text-decoration: underline;
}

/* Bottom navigation - center and style */
.login #nav {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #FCE4EC;
    width: 100%;
    max-width: 450px;
    order: 3;
}

.login #nav a {
    display: block;
    margin: 8px 0;
    font-size: 13px;
    color: #E91E8C;
}

.login #backtositelink,
.login #site-title {
    text-align: center;
    margin-top: 20px;
}

/* Language chooser - move to bottom, center, and style */
#language-chooser {
    text-align: center !important;
    margin-top: 30px !important;
    padding-top: 25px !important;
    border-top: 1px solid #FCE4EC !important;
    width: 100% !important;
    max-width: 450px !important;
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 450px !important;
    background: white !important;
    border: 2px solid #F8BBD9 !important;
    border-radius: 15px !important;
    padding: 20px !important;
}

#language-chooser form {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap;
    width: 100%;
}

.language-chooser {
    background: transparent !important;
    border: none !important;
}

.language-chooser select {
    border: 1px solid #F8BBD9 !important;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    background: white;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.language-chooser select:focus {
    border-color: #F48FB1 !important;
    outline: none;
    box-shadow: 0 0 8px rgba(244, 143, 177, 0.3);
}

.language-chooser input[type="submit"] {
    background: #F48FB1 !important;
    color: white !important;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600;
}

.language-chooser input[type="submit"]:hover {
    background: #E91E8C !important;
    transform: translateY(-1px);
}

/* Error and message styling */
.login #login_error,
.login .message {
    margin: 0 0 20px !important;
    padding: 12px 15px !important;
    border-radius: 8px;
    border-left: 3px solid #d32f2f;
    background: #ffebee;
    color: #c62828;
    font-size: 13px;
}

.login .message {
    border-left-color: #2e7d32;
    background: #e8f5e9;
    color: #1b5e20;
}

/* Responsive design */
@media (max-width: 600px) {
    body.login {
        padding: 20px;
    }
    
    #login {
        max-width: calc(100% - 40px);
        margin: 20px auto !important;
    }
    
    .login #login {
        padding: 30px 20px;
    }
    
    .login h1 {
        margin-bottom: 20px !important;
    }
    
    .login h1 a {
        font-size: 0 !important;
    }

    .login h1 a::before {
        font-size: 30px;
    }
    
    #language-chooser form {
        flex-direction: column !important;
    }
}

/* Login Menu Buttons */
.login-menu-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 30px 20px;
    width: 100%;
    max-width: 450px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.login-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #F48FB1, #E91E8C);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(233, 30, 140, 0.2);
    flex: 1;
    min-width: 120px;
}

.login-menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 30, 140, 0.3);
    color: white !important;
}

.login-menu-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .login-menu-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .login-menu-btn {
        flex: auto;
        width: 100%;
    }
}
.login #loginform input[type="text"],
.login #loginform input[type="password"],
.login #loginform input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #F8BBD9;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.login #loginform input[type="text"]:focus,
.login #loginform input[type="password"]:focus,
.login #loginform input[type="email"]:focus {
  border-color: #F48FB1;
  box-shadow: 0 0 0 3px rgba(244, 143, 177, 0.2);
  outline: none;
}

.login #loginform .button.button-primary {
  background-color: #F48FB1;
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.login #loginform .button.button-primary:hover {
  background-color: #E91E8C;
  box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
}

.login #login_error {
  background-color: #FFEBEE;
  border-left: 4px solid #E91E8C;
  color: #C2185B;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.login #login_error a {
  color: #E91E8C;
}

.login .login-username,
.login .user-pass {
  margin-bottom: 15px;
}

.login .forgetmenot {
  margin-bottom: 15px;
}

.login .forgetmenot input[type="checkbox"] {
  margin-right: 8px;
}

.login .forgetmenot label {
  display: inline;
  font-weight: normal;
  color: #5D4037;
}

.login #nav,
.login #backtoblog {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #F8BBD9;
}

.login #nav a,
.login #backtoblog a {
  color: #F48FB1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
  color: #E91E8C;
  text-decoration: underline;
}

.login #nav {
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .login #login {
    margin: 20px;
    padding: 30px 20px;
  }

  .login h1 a {
    font-size: 0 !important;
  }

  .login h1 a::before {
    font-size: 28px;
  }
}
